【单选题】请选出以下程序的输出结果 class A { public void func1() { System.out.println("A func1 is calling"); } public void func2() { func1(); } } class B extends A { public void func1() { System.out.println("B func1 is cal...
A.
A func1 is calling B func3 is calling
B.
编译错误
C.
A func1 is calling A func1 is calling B func3 is calling
【单选题】请选出以下程序的输出结果class A {public void func1() {System.out.println("A func1 is calling");}public void func2() {func1();}}class B extends A {public void func1() {System.out.println("B func1 is calling");}pub...
A.
func1 is calling B func3 is calling
B.
func1 is calling B func3 is calling
C.
A func1 is calling A func1 is calling B func3 is calling