单项选择题
给定如下Java程序片断:
class A{
public A (){
System.out.println("A"); } }
class B extends A{ public B(){
System.out.println("B"); }
public static void main(String[] args){
B b=new B(); } }
上述程序将()。
A.不能通过编译
B.通过编译,输出为:A B
C.通过编译,输出为:B
D.通过编译,输出为:A
点击查看答案&解析
相关考题
