S.O.L.I.D Stands for first five object-oriented design principle by Robert C.Martin.
SOLID principles can be used to design and develop extensible and easy to maintain software. By using these principles in object-oriented programming developer can create and maintain the codebase very easily.
SOLID stands for:
- Single-responsibility principle
- Open-closed principle
- Liskov substitution principle
- Interface segregation principle
- Dependency Inversion Principle
In this article, we will learn about the principle with the codebase.
A class should have only one job.
This principle states and recommends that a class should have only one responsibility. If a class contains multiple responsibilities then it becomes coupled. …[Read more]