2017年9月18日

java反射

摘要: [Rollen 20] 但是注意一下,当我们把Person中的默认的无参构造函数取消的时候,比如自己定义只定义一个有参数的构造函数之后,会出现错误: 比如我定义了一个构造函数: ? 1 2 3 4 public Person(String name, int age) { this.age=age; 阅读全文

posted @ 2017-09-18 20:19 肥羊lafe 阅读(92) 评论(0) 推荐(0) 编辑

导航