Srp: Main

While this is close, it is imprecise. If we took that literally, a Calculator class that adds, subtracts, and multiplies would violate SRP because it does three things. But that is incorrect.

The most common mistake developers make is equating SRP with functional cohesion. They think SRP means: "A class should do one thing." srp main

The Single Responsibility Principle states that a class should have only one reason to change. In other words, a class should have a single responsibility or a single purpose. This means that a class should be designed to perform only one specific task or set of related tasks, and it should not be responsible for multiple, unrelated tasks. While this is close, it is imprecise

Robert C. Martin (Uncle Bob), who popularized the term, clarified the definition by focusing on . The true definition is: The most common mistake developers make is equating

The silence that followed was total.

Look at your methods. If you can divide them into groups such that changing one group would not affect the others, you likely have multiple responsibilities.