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
答案解析:有

微信扫一扫手机做题