Sunday, November 25, 2007

adv of Clone in .net

When u copy an object it actually copies the reference.
So if Obj A is copied by Obj B and say after sometime some values in Obj A changes then Obj B also changes.
If we clone its called “shallow copying” and the above issue will not occur.

No comments: