Question OOP-SOLID-0022
EasyWhat does the Single Responsibility Principle say about a class?
- A.
It should have only one method
- B.
It should have one object
- C.
It should be used only once
- D.
It should have only one reason to change
Show answer and explanation
Answer: D
Each class should focus on one job.