#58 ShallowCopy and DeepCopy

Object that has to be Copied:

Before Copy

Shallow Copy: Reference to objects being copied are only modified in shallow copy.

Shallow Copy in Progress
Shallow Copy Completed

Deep Copy: A separate copy of object is made,instead of only reference.

Deep Copy in Progress
Deep Copy Completed

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s