欢迎来到求知题库网 求知题库官网
logo
全部科目 > Java认证考试 > Java认证考试综合练习

单项选择题

现有: 
class Cat { 
Cat(int c) { System.out.print("cat" + c + " "); } 
} 
class SubCat extends Cat { 
SubCat(int c) { super(5); System.out.print("cable "); } 
SubCat() { this(4); } 
public static void main(String [] args) { 
SubCat s = new SubCat(); 
} 
}
结果为:() 

    A.cat5
    B.cable
    C.cable cat5
    D.cat5 cable

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题