Single Responsibility Principle

Proposed first by Robert C. Martin, the Single-Responsibility Principle (SRP) states that every module, class, or function in a computer program should be responsible for a single part of the program's functionality, which it should encapsulate.

A class should have only one reason to change.