Question OOP-INH-0055
MediumA Penguin class extends Bird, but Bird has fly(), and Penguin's fly() throws an exception. What does this suggest?
- A.
The hierarchy is badly designed; flying should not be part of every Bird
- B.
Exceptions should never be thrown
- C.
Sign up free to see the answer and a step-by-step explanation.