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
Can we use this pointer inside static member function?
What is the difference between structures and unions?
What is name hiding in c++?
What is function overloading c++?
Define pure virtual function?
What is format for defining a structure?
what is C++ exceptional handling?
What are static type checking?
What is a character in c++?
What is using namespace std in c++?
Give example of a pure virtual function in c++?
What is constructor in C++?
what is Loop function? What are different types of Loops?
How do you flush std cout?
What is the v-ptr?