已知:
class A {
public final void m() {
System.out.println(“A.m”);
}
}
public class B extends A {
public void m() {
System.out.println(“B.m”);
super.m();
}
public static void main(String [] args) {
new B().m();
}
}
那么结果为?
AA.m
BB.m
CB.m A.m
D编译错误
相关试题
-
下列语句输出的结果为()。public class test{public static void main(String args[]){byte b=OXA
-
确的是 public class Test extends Thread { public static void main(String args[]) { Test test = new Tes
-
b=9; System.out.println(a = +a); System.out.println(b = +b); } System.
-
va代码有什么错误 public class Hello{ public static void main(String[ ] args) { System.println(hello);
-
} } public class B extends A { public void m() { System.out.println(“B.m”);