Unisys Interview Question

Q: What is deep and shallow copy?

Interview Answer

Anonymous

Aug 19, 2015

Shallow copy is by copy constructor and assignment operator,here only value of pointer is copied not exact memory. deep copy is by copy constructor and overloaded assignment operator,here both memory and value of a pointer is copied..

1