A shallow copy constructs a new compound object and then (to the extent possible) inserts references into it to the objects found in the original. A deep copy constructs a new compound object and then, recursively, inserts copies into it of the objects found in the original.
Share, Support, Subscribe!!!
Follow us on social media:
Get Rs. 2200 Free Coupon on Airbnb.com when signing up.