Copying objects: Shallow copy

  • used when a new instance type gets created and it keeps the values that are copied in the new instance.
  • used to copy the reference pointers just like it copies the values.
  • allows faster execution of the program and it depends on the size of the data that is used.

Copying objects: Shallow copy — Structure map

Clickable & Draggable!

Copying objects: Shallow copy — Related pages: