构造函数的this和super的调用_"访问派生类的构造函数中的 \"this\" 前,必须调用 \"super\"。"-CSDN博客

网站介绍:文章浏览阅读736次。class A {public static void main(String[] args) {A a=new A();B b=new B();B b=new B(1);}A(){System.out.println("A");}A(int i_"访问派生类的构造函数中的 \"this\" 前,必须调用 \"super\"。"