您的位置:首页 > Web前端

Difference between clone and copy

2012-05-25 12:29 344 查看
Clone --

Creates another reference (Pointer) to the same location.(Shadow copy,即复制引用)

Copy --

Creates two different references to two different Address Spaces. (Deep copy,即复制对象实例)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: