SOLID Design Principles

The SOLID principles are intentened to develop software that are easy to maintain and extend.

S.O.L.I.D Stands for,

  • S -> Single Responsiblity Principle
  • O -> Open Closed Principle
  • L -> Liskov Substitution Principle
  • I -> Interface Segregation Principle
  • D -> Dependency Inversion Principle
Name Definition
Single Responsibility Principle Class should have only one reason to change.
Open Closed Principle Extend a class behavior, without modifying it.
Liskov Substitution Principle Derived classes should be substitutable for their base classes.
Interface Segregation Principle Define interfaces that are specific to client.
Dependency Inversion Principle Depend upon Abstractions. Do not depend upon concretions.