2018年4月15日
摘要: Java的clone():深复制与浅复制 Java中要想自定义类的对象可以被复制,自定义类就必须实现Cloneable中的clone()方法,如下: 1 public class Student implements Cloneable { 2 3 private String name; 4 5 阅读全文
posted @ 2018-04-15 17:34 @ 小浩 阅读(403) 评论(0) 推荐(0) 编辑