多做题,通过考试没问题!

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、 cat5 cable
  • D、 cable cat5
正确答案:C
答案解析:
进入题库查看解析

微信扫一扫手机做题