试题详情
单项选择题 public class Pet{   private String name;   public Pet(){   System.out.print(1);  }   public Pet(String name){   System.out.print(2);  }  }   public class Dog extends Pet{  public Dog(){   System.out.print(4);  }   public Dog(String name){   super(name);   System.out.print(3);  }   }   执行new Dog(“棕熊”);后程序输出是哪项?() 

A、 33

B、 13

C、 23

D、 123

  • C
  • 关注下方微信公众号,在线模考后查看

热门试题