Question 31
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.
KISS
- D.
Liskov Substitution only
Sign up free to see the answer and a step-by-step explanation.