SOLID means five important software design and develop principles, it stands by
-
S is for SRP (Single responsibility principle) - a class should have only one responsibility.
-
O is for OCP (Open closed principle) - Open for extension(Inheritance), closed for modification
-
L is for LSP (Liskov substitution principle) - the parent class should be able to refer child objects seamlessly during runtime polymorphism. The derived class does not affect the behavior of the parent class. /objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program.
-
I is for ISP ( Interface segregation principle) - many client-specific interfaces are better than one general-purpose interface
- D is for DIP ( Dependency inversion principle) one should “depend upon abstractions, [not] concretions.