SOLID Principles
In OOPS
S.O.L.I.D is an acronym for the first five object-oriented design
principles.
These principles, when combined together, make it easy for a
programmer to develop software that are easy to maintain and
extend. They also make it easy for developers to avoid code
smells, easily refactor code, and are also a part of the agile or
adaptive software development.
S - Single responsiblity principle
O - Open-closed principle
L - Liskov substitution principle
I - Interface segregation principle
D - Dependency Inversion Principle
Single responsiblity principle
The single responsibility principle states that a class or module should
do one thing only or