2022年4月16日

原型模式 深拷贝 反序列化方式

摘要: public abstract class SerialCloneable<T> { protected final T clone() { ObjectOutputStream oos = null; ByteArrayOutputStream bos = null; ObjectInputStr 阅读全文

posted @ 2022-04-16 18:10 金满仓 阅读(14) 评论(0) 推荐(0) 编辑

原型模式 深拷贝 重写clone方式

摘要: public class Citation implements Cloneable{ private String name; private Student student; @Override protected Object clone() throws CloneNotSupportedE 阅读全文

posted @ 2022-04-16 17:29 金满仓 阅读(37) 评论(0) 推荐(0) 编辑

导航