Single-responsibility principle (source code)

= Single-responsibility principle
{wiki=Single-responsibility_principle}

The Single Responsibility Principle (SRP) is one of the five SOLID principles of object-oriented programming and design, which were introduced by Robert C. Martin (often referred to as "Uncle Bob"). The SRP states that a class should have only one reason to change, meaning it should only have one responsibility or job. \#\#\# Key Points of the Single Responsibility Principle: 1. **Separation of Concerns**: Each class should handle a distinct part of the functionality of the application.