Design
The 5 SOLID Principles
A set of object-oriented design principles that make code easier to maintain and extend.
SOLID
- S - Single Responsibility: a class should have only one reason to change.
- O - Open/Closed: open for extension, closed for modification.
- L - Liskov Substitution: subtypes must be substitutable for their base types.
- I - Interface Segregation: many small interfaces beat one large interface.
- D - Dependency Inversion: depend on abstractions, not concrete implementations.
