Deep copy is a value copy, shallow copy is a pointer copy
For example, for the cake in the same drawer, when making a deep copy, a new cake is made and saved, and when a shallow copy is made, a key to open the drawer is copied and saved.
Deep copy copies content, while shallow copy copies pointers. The biggest difference between deep copy and shallow copy is whether the address of the subclass object changes. If the address of the subclass object changes, then it is a deep copy
http://www.cnblogs.com/ydhliphonedev/archive/2012/04/27/2473927.html
http://ios.jobbole.com/83183/
Brother, use Baidu...
Deep copy is a value copy, shallow copy is a pointer copy
For example, for the cake in the same drawer, when making a deep copy, a new cake is made and saved, and when a shallow copy is made, a key to open the drawer is copied and saved.
Deep copy copies content, while shallow copy copies pointers. The biggest difference between deep copy and shallow copy is whether the address of the subclass object changes. If the address of the subclass object changes, then it is a deep copy