能解释一下deep clone and shallow clone 么?
登录 | 论坛导航 -> 华新鲜事 -> 技术の宅 | 本帖共有 2 楼,分 1 页, 当前显示第 1 页 : 本帖树形列表 : 刷新 : 返回上一页
<<始页  [1]  末页>>
作者:icky (等级:15 - 最接近神,发帖:7923) 发表:2006-04-07 09:04:19  楼主  关注此帖
有一点点不一样Vector b = new Vector(a); // this is shallow clone Vector b = (Vector)a.clone(); // this is deep clone (more...)
能解释一下deep clone and shallow clone 么?
This page is intentionally left blank
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
作者:icky (等级:15 - 最接近神,发帖:7923) 发表:2006-04-07 18:56:50  2楼
Shallow cloneShallow clone: if original object's value is changed, and the copy of that object also changes.
is it similar to copy pointer and copy objects in C?
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
论坛导航 -> 华新鲜事 -> 技术の宅 | 返回上一页 | 本主题共有 2 篇文章,分 1 页, 当前显示第 1 页 | 回到顶部
<<始页  [1]  末页>>

请登录后回复:帐号   密码