What is the difference between shallow copy and deep copy?



What is the difference between shallow copy and deep copy?..

Answer / 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

More C++ General Interview Questions

give me some class & objects examples?

1 Answers  


Is c++ double?

0 Answers  


How do I exit turbo c++?

0 Answers  


How does list r; differs from list r();?

0 Answers  


What is ofstream c++?

0 Answers  






Is java based off c++?

0 Answers  


Which software is best for coding?

0 Answers  


What is an overflow error?

0 Answers  


Are there any special rules about inlining?

0 Answers  


Is c++ harder than java?

0 Answers  


What is a unnitialised pointer?

0 Answers  


Explain about templates of C++.

0 Answers  


Categories