GP OOPS C++ This Pointer Interview
GP OOPS C++ This Pointer Interview
Shallow Copy stores the references of Deep copy stores copies of the
objects to the original memory object’s value.
address.
Shallow Copy reflects changes made Deep copy doesn’t reflect changes
to the new/copied object in the made to the new/copied object in the
original object. original object.
Shallow Copy stores the copy of the Deep copy stores the copy of the
original object and points the original object and recursively copies
references to the objects. the objects as well.