【单选题】请选出以下程序的输出结果 public class Child extends People { People father; public Child(String name) { System.out.print(3); this.name = name; father = new People(name + ":F"); } public Child() { System.out.print...
【单选题】请选出以下程序的输出结果 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