Oracle
1Z0-851 · Question #196
Given: 10. interface Jumper { public void jump(); } ... 20. class Animal {} ... class Dog extends Animal { Tail tail; 32. } ... class Beagle extends Dog implements Jumper{ public void jump() {} }…
The correct answer is B. Cat is-a Jumper C. Dog is-a Animal F. Beagle has-a Tail. See the full explanation below for the reasoning.
Question
Given: 10. interface Jumper { public void jump(); } ... 20. class Animal {} ... class Dog extends Animal { Tail tail; 32. } ... class Beagle extends Dog implements Jumper{ public void jump() {} } ... class Cat implements Jumper{ public void jump() {} } Which three are true? (Choose three.)
Options
- ACat is-a Animal
- BCat is-a Jumper
- CDog is-a Animal
- DDog is-a Jumper
- ECat has-a Animal
- FBeagle has-a Tail
- GBeagle has-a Jumper
How the community answered
(38 responses)- A11% (4)
- B82% (31)
- D5% (2)
- G3% (1)
Community Discussion
No community discussion yet for this question.