Given: 10. interface Jumper { public void jump(); } ... 20. class Animal {} ... 30. class Dog extends Animal { 31. Tail tail; 32. } ... 40. class Beagle extends Dog implements Jumper{ 41. public void jump() {} 42. } ... 50. class Cat implements Jumper{ 51. public void jump() {} 52. }. Which three are true?()
- A、 Cat is-a Jumper
- B、 Cat is-a Animal
- C、 Dog is-a Jumper
- D、 Dog is-a Animal
- E、 Beagle has-a Jumper
- F、 Cat has-a Animal
- G、 Beagle has-a Tail
正确答案:A,D,G
答案解析:有
微信扫一扫手机做题