Single Responsability Principle (SRP)

SRP is a software design principle that states that a class or module should have only one reason to change. In other words, a class or module should have only one responsibility, and it should not be responsible for more than one aspect of the system.

It is one of the five principles of SOLID, which are a set of object-oriented design principles. The SRP focuses on the design of individual classes, ensuring that each class has a clearly defined and single responsibility.


Backlinks