class A{ public A() { } public A(int A) :this() { }}当A a=new A(1);时 会先调用无参数的构造函数。在调用有参数那个
构造函数互相调用?
this();
好像不可以把?不过你可以通过调用同一个方法来实现...