Saturday, February 16, 2013

Single-Responsibility Principle (SRP)

This principle is S of S.O.L.I.D design principles.
According to Single Responsibility Principle, Every class should have a single responsibility: It should have a single purpose in the system, and there should be only one reason to change it.

The SRP is one of the simplest of the principle , and one of the hardest to get right. 

A detailed description with an example can be found here

No comments: