Question OOP-SOLID-0011
MediumAn interface Worker has work() and eat(), and a Robot class must implement eat() with an empty body. Which principle is violated?
- A.
DRY
- B.
Interface Segregation
- C.
Sign up free to see the answer and a step-by-step explanation.