Principles of Object Oriented Desing There are five principles of class design (aka SOLID):
(SRP) The SingleResponsibilityPrinciple
- Each responsibility should be a separate class, because each responsibility is an axis of change.
- A class should have one, and only one, reason to change.
- If a change to the business rules causes a class to change, then a
( Read more... )