爲什麼輸出是「021」?爲什麼有「0」和「1」(因爲「我」得到「2」爲什麼變成「1」)?java構造函數:this(。)
public class C {
protected int i;
public C(int i){
this(i,i);
System.out.print(this.i);
this.i=i;
}
public C(int i, int j) {
System.out.print(this.i);
this.i=i+j;
}
public C(){
this(1);
System.out.print(i);
}
public static void main(String[] args) {
C c=new C();
}}