Copying objects: Deep copy

  • used to store the values that are already copied.
  • doesn’t copy the reference pointers to the objects, it makes the reference to an object and the new object that is pointed by some other object gets stored.
  • makes execution of the program slower due to making certain copies for each object that is been called.

Copying objects: Deep copy — Structure map

Clickable & Draggable!

Copying objects: Deep copy — Related pages: