题目

public class Test18 {
int w, x, y, z;
public Test18(int a, int b) {
x = a;
y = b;
}
public Test18(int a, int b, int c, int d) {
Test18(a,b);
w = d;
z = c;
}
}
小结
构造方法不能像普通方法那样调用:
在类内部用this(……)调用本类构造、用super(……)调用父类构造,当然类内部也能new
类外部通过new一个对象传参来指定调用.