Single Responsibility Principle explained with simple example
Single Responsibility Principle (SRP) is a software design principle which states that every module, class or function of a software should have one and only one responsiblity/functionality to perform. As stated by Robert C.Martin, “A class should have one and only one reason to change“.
Before going ahead we should know why do we need software design principle and what is software design principle.
(more…)