Courtesy: Uncle Bob
SOLID is an Acronym for the five Object Oriented design principles
- S: Single Responsibility Principle
- O: Open-Closed Principle
- L: LISKOV Substitution Principle
- I: Interface Segregation Principle
- D: Dependency Inversion Principle
Single Responsibility Principle: A Class should have only one reason to change.
"If a class has more than one responsibility, the responsibilities become coupled. Changes to one responsibility may impair or inhibit the class's ability to meet the others. This kind of coupling leads to fragile designs that break in unexpected ways when changed."
No comments:
Post a Comment