• 2022-06-07
    看下面一段程序:   class Aclass{ void go() { System.out.println("Aclass"); }}public class Bclass extends Aclass{ void go() { System.out.println("Bclass"); } public static void main(String args[]){ Aclass a=new Aclass(); Aclass a1=new Bclass(); a.go(); a1.go(); }}以上程序运行结果是:( )
    A: AclassAclass
    B: BclassBclass
    C: AclassBclass
    D: BclassAclass
  • 举一反三