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:
Post a Comment