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

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

Which statements concerning the relationships between the following classes are true?()   class Foo {  int num;   Baz comp = new Baz();   }   class Bar {  boolean flag;   }   class Baz extends Foo {   Bar thing = new Bar();   double limit;   }  

  • A、A Bar is a Baz.
  • B、A Foo has a Bar.
  • C、A Baz is a Foo.
  • D、A Foo is a Baz.
  • E、A Baz has a Bar.
正确答案:C,E
答案解析:
进入题库查看解析

微信扫一扫手机做题