S.O.L.I.D principles help us to create a system that is easy to maintain and extend over time. Well designed and written classes can speed up the coding process by leaps and bounds while reducing the number of bugs in comparison.
S.O.L.I.D is the acronym for five basic principles of object-oriented programming to design a class.
- Single responsibility principle
- Open Closed Design Principle
- Liskov’s Substitution Principle
- Interface-segregation principle
- Dependency Inversion Principle