c# - When is a shallow copy desirable (instead of a deep copy)? -
Can someone give an example of a situation where a shallow copy is required?
Note that in some situations, shallow transcripts and deep copies are the same. This can happen when no sub-devotees of the object have any ownership; That is, all the sub-deities are the ones I want to see in those instances where one object is from variables which it owns, and it is still desirable to make them copy.
Comment : I do not care which languages are given for example I'm asking this question from the C ++ / Java / C # point, though I think That copy is a language agnostic concept.
When ownership variables are invariant types, then a shallow copy is sufficient, a deep copy is possible, but only Additional memory will result in usage.
Comments
Post a Comment