SOLID: Single Responsibility Principle With Examples
The Single Responsibility Principle (SRP) is one of the five SOLID design principles that guide software development. It states that a class should have only one reason to change and one responsibility. The principle is intended to promote modularity and help developers create easier code to understand, modify, and maintain.