摘要:
/*演示构造代码块的应用*/class Person { String name; int age; //构造代码块 { cry(); } Person(String name, int age) { this.name = name; this.age = age; ... 阅读全文
posted @ 2015-11-17 14:30 勇敢的鑫 阅读(187) 评论(0) 推荐(0)
|
摘要:
/*演示构造代码块的应用*/class Person { String name; int age; //构造代码块 { cry(); } Person(String name, int age) { this.name = name; this.age = age; ... 阅读全文
posted @ 2015-11-17 14:30 勇敢的鑫 阅读(187) 评论(0) 推荐(0) |
||