原型设计模式及深拷贝-CSDN博客

网站介绍:文章浏览阅读85次。public class DeepProtoType implements Serializable, Cloneable{ public String name; //String 属性 public DeepCloneableTarget deepCloneableTarget;// 引用类型 public DeepProtoType() { ..._设计模式深拷贝结果都一样