1.

What Is The Difference Between A Shallow Copy And A Deep Copy?

Answer»

A shallow copy SIMPLY creates a new OBJECT and INSERTS in it REFERENCES to the members of the original object. A deep copy CONSTRUCTS a new object and then creates in it copies of each of the members of the original object.

A shallow copy simply creates a new object and inserts in it references to the members of the original object. A deep copy constructs a new object and then creates in it copies of each of the members of the original object.



Discussion

No Comment Found