class {
public l(String name) {
System.out.println("(String name)");
}
}
class extends {
public () {
super("hello"); //这里为什么用super调用的带参构造方法呢,子类的无参构造方法难道不能直接执行?????????
System.out.println("D()");
}
public D(String name) {
super(name);
System.out.println("D(String name)");
}
}
class AD {
public static void main(String[] args) {
}
}
|
|