What is the difference between a shallow copy and a deep copy?
Answer Posted / glibwaresoftsolutions
• Shallow Copy: Copies memory addresses. Changes in one object affect the other.
• Deep Copy: Creates a new copy of the actual data, independent of the original.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can you specify a class in C++?
What relational operators if statements in c++?
Explain how the virtual base class is different from the conventional base classes of the opps.
How should runtime errors be handled in c++?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
What is insertion sorting?
What is different in C++, compare with unix?
What is the use of namespace std in C++?
What is data abstraction? How is it different from data encapsulation?
Where can I run c++ program?
how to connect with oracle 9i with server in socket program in c/c++
What is the best c++ book?
What is scope in c++ with example?
How do you show the declaration of a virtual constructor?
Is string data type in c++?