Single responsibility principle
The Single Responsibility Principle (SRP, German A - responsibility principle) is a draft Directive in the software architecture.
In object-oriented programming, the SRP states that each class has to meet only a clearly defined task. In one class only functions should be present, which directly contribute to the fulfillment of this task.
The term was introduced by Robert C. Martin in a part of articles of the same name in his publication Principles of Object Oriented Design:
"There shoulderstand never be more than one reason for a class to change. "
" There should never be more than one reason to change a class. "
The term is best known for his book Agile Software Development: Principles, Patterns, and Practices.