public class A {
public A(String message) {
System.out.println(message);
}
}
class B extends A {
public B() {
super("调用父类构造方法");
}
public B(String message) {
super("调用父类构造方法");
}
}
public class A {
public A(String message) {
System.out.println(message);
}
}
class B extends A {
public B() {
super("调用父类构造方法");
}
public B(String message) {
super("调用父类构造方法");
}
}