摘要: /*圆的类*/ public class R { private double radius; // 构造方法,有参构造 public R(double radius) { this.radius = radius; } //方法的重载,参数不同 // 构造方法,无参构造 public R() { ... 阅读全文
posted @ 2017-11-09 16:55 So.cool 阅读(274) 评论(0) 推荐(0) 编辑
摘要: public class TAutoPerson { public static void main(String args[]) { new Person(); new Person(); new Person(); new Person(); new Person(); ... 阅读全文
posted @ 2017-11-09 16:54 So.cool 阅读(229) 评论(0) 推荐(0) 编辑