设计模式-原型模式

1、浅克隆

 

 

2、深克隆

  通过ObjectInputStream序列化,反序列化

    通过Json先Json化,再转化为对象

posted @ 2020-04-15 18:42  cslnight  阅读(84)  评论(0)    收藏  举报