慎用 Object 的 clone 方法来拷贝对象

对象的 clone 方法默认是浅拷贝,若想实现深拷贝需要重写 clone 方法实现属性对象
的拷贝。

posted on 2017-02-10 17:26  amos-s  阅读(209)  评论(0编辑  收藏  举报

导航