class Parent1 { Parent1(String s){ System.out.println(s); } } class Parent2 extends Parent1{ Parent2(){ //super(); System.out.println("parent2"); } } public class Child extends Parent2 { public static void main(String[] args) { Child child = new Child();
}
为什么编译报错??? 没有找到构造器Parent1() 怎么修改一下?
|