Question OOP-SOLID-0049
MediumA Bird class has fly(). Ostrich extends Bird. Which redesign follows LSP?
- A.
Remove the Ostrich class
- B.
Bird without fly(), with a FlyingBird subclass or Flyable interface for birds that fly
- C.
Sign up free to see the answer and a step-by-step explanation.