Pages

SOLID in Five Line

SOLID are the five principle of class design, if we follow SOLID than our code is easy to refactor & maintain with minimum impact.

S
SRP
The Single Responsibility Principle
A class should have one, and only one, reason to change.
O
OCP
The Open Closed Principle
You should be able to extend a classes behavior, without modifying it.
L
LSP
The Liskov Substitution Principle
Derived classes must be substitutable for their base classes.
I
ISP
The Interface Segregation Principle
Make fine grained interfaces that are client specific.
D
DIP
The Dependency Inversion Principle
Depend on abstractions, not on concretions.