Single Responsibility Principle


Single Responsibility Principle is a computer programming principle that states that every module or class should have responsibility over a single part of the functionality provided by the application, and that responsibility should be entirely encapsulated by the class.

Single Responsibility Principle implies a single entity should be narrowly aligned with that responsibility. Robert C. Martin expresses the principle as, "A class should have only one reason to change".

More Information#

There might be more information for this subject on one of the following: