Question OOP-SOLID-0041
MediumA UserService class validates input, hashes passwords, sends welcome emails and writes logs. Which change best follows the Single Responsibility Principle?
- A.
Merge more features into UserService
- B.
Move hashing, emailing and logging into their own classes that UserService uses
- C.
Sign up free to see the answer and a step-by-step explanation.