【单选题】已知有如下类的定义: package a; public final class A{ public void aMethod(){ System.out.println("A"); } } package b; import a.*; public class B extends A{ public void bMethod(){ System.out.println("B"); } } 关于上...
【单选题】已知 package a; class A{ public void aMethod(){ System.out.println("A"); } } package b; import a.A; class B { public static void main(String[] args){ A aa=new A(); aa.aMethod(); } } 下列关于上述代码说法正确的是:
【单选题】已知: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 [] a...