Question OOP-SOLID-0043
MediumA ReadOnlyFile class extends File but throws an exception from write(). Code that writes to any File now fails. Which principle is broken?
- A.
Open/Closed
- B.
Dependency Inversion
- C.
Sign up free to see the answer and a step-by-step explanation.