摘要:
public class Text { public static int num;//静态字段 public Text() { num++; System.out.printf("你已经创建了%d个对象\n",num); }//构造函数 public static void main(String 阅读全文
摘要:
class InitializeBlockClass { { field=200; } public int field=100; public InitializeBlockClass(int value){ this.field=value; } public InitializeBlockCl 阅读全文