xxxxxxxxxx
These principles establish ways to make your codebase more maintainable and
prepare it for future growth.
SOLID is an acronym for five object-oriented programming principles:
S - Single-responsiblity Principle
O - Open-closed Principle
L - Liskov Substitution Principle
I - Interface Segregation Principle
D - Dependency Inversion Principle
xxxxxxxxxx
1.Encapsulation: An object's attributes can only be accessed/modified by one of its methods.
2.Abstraction: Show only the things needed.
3.Inheritance: The ability for one object to acquire properties from another object.
4.Polymorphism: The ability to have many implementations of a single interface.
xxxxxxxxxx
Encapsulate What Varies
Code to an Interface Rather Than to an Implementation
Delegation Principle
The Open-Closed Principle (OCP)
Dry- Don't Repeat Yourself
Single Responsibility Principle (SRP)
Liskov's Substitution Principle (LSP)
Interface Segregation Principle (ISP)
Dependency Injection or Inversion Principle
SOC Separation of concerns
You Aint Gonna need it