SOLID
2023
SOLID Single responsibility principle
·4 mins
This principle refers to the unique responsibility that each program should have with a specific and limited task.
SOLID Open/closed principle
·3 mins
The open/closed principle (OCP) says that every class, module, method, etc. should be open for an extension but must be closed for modification.
SOLID Liskov substitution principle
·5 mins
The Liskov substitution principle (LSP) is an object-oriented design principle that states that a subclass must be interchangeable with its superclass without changing the program’s behavior.
SOLID Interface segregation principle
·4 mins
This principle about Interface segregation principle (ISP) says that any client should not be required to depend on methods they do not use.