2011年5月23日月曜日

"shallow" copy VS "deep" copy

so-called "shallow" copy: It creates a new instance of the same class and then copies the field values (including object references) from this instance to the new instance. A "deep" copy, in contrast, would also recursively clone nested objects.

0 件のコメント:

コメントを投稿