Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 326 Bytes

1_SRP_code_problem.md

File metadata and controls

10 lines (7 loc) · 326 Bytes

Below is an example of a class not following SRP

class UserService {
  void Validate(User user) { } 
  void MakePayment(User fromUser, User toUser) { } 
}

What changes can be made to better follow SRP ?

« back to readme.md | view the refactored code »