/* * 汽车类 * * 浅克隆(shadow clone)的实现 */public class Car implements Cloneable {//汽车款式public int type;//引用的其他对象,汽车发动机public Engine engin...
基于44个网页-相关网页
浅克隆
Shallow cloning
以上为机器翻译结果,长、整句建议使用 人工翻译 。
浅拷贝是好的如果你是单维结构或者如果你不需要克隆任何包含于其中的数据结构,即简单不复制的数据结构。
A shallow copy is fine if your structure is 1-dimensional, or if you do not need to clone any of the contained data structures.
youdao
应用推荐
模块上移
模块下移
不移动