问题详情

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.

时间:2022-01-05 21:26 关键词: SCJP程序员认证考试

答案解析

C| E