2018年4月26日

原型模式的深克隆和浅克隆

摘要: 深克隆核心代码: public Object deepclone () throws IOException, ClassNotFoundException{ //将对象写入流中 ByteArrayOutputStream bao=new ByteArrayOutputStream(); Objec 阅读全文

posted @ 2018-04-26 10:08 与云共雨 阅读(100) 评论(0) 推荐(0) 编辑

导航