What is the difference between shallow copy and deep copy?
Answer Posted / hrpynux@gmail.com
A shallow copy constructs a new compound object and then (to the extent possible) inserts references into it to the objects found in the original. A deep copy constructs a new compound object and then, recursively, inserts copies into it of the objects found in the original.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are signs of manipulation?
What is c++ coding?
What is virtual destructor? What is its use?
If dog is a friend of boy, is boy a friend of dog?
How do we balance an AVL Tree in C++?
How is c++ different from java?
What is the use of endl?
What is flush c++?
What is the advantage of c++ over c?
What is heap sort in c++?
What is the difference between public and private data members?
Can I learn c++ without learning c?
What are the benefits of pointers?
Does there exist any other function which can be used to convert an integer or a float to a string?
What do you mean by enumerated data type?