|
I hope to say it right!! Deep copy is to copy (copy all levels)the data in another place with another pointer point to it. Shallow copy is to copy (just copy first level)the pointer point to data into another one (both are pointing to same address).
I mean in deep copy if the original copied object is destroyed the new object will not affect but in shallow copy there might be pointers point to wrong data
|