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 is the difference between a definition and a declaration?
What is abstraction in c++?
What is type of 'this' pointer? Explain when it is get created?
What is enum c++?
what are Access specifiers in C++ class? What are the types?
What is vector string in c++?
What are formatting flags in ios class?
Will c++ be replaced?
Why is c++ considered difficult?
What is a Default constructor?
Write a struct time where integer m, h, s are its members?
What are the four main data types?
Explain the differences between private, public and protected and give examples.
Evaulate: 22%5 a) 2 b) 4 c) 0
What is meant by const_cast?