What’s the difference?
•
A shallow copy
shares
nested objects
with the original class object
•
A deep copy
makes its own copy
of
nested objects at different locations than
in the original class object