SOLID is an acronym consisting of five design principles to make software product maintainable, flexible and easy to understand. This lesson explains these design principles in detail.

The SOLID principles stand for below five terms.

  1. Single Responsibility Principle
  2. Open/Closed Principle
  3. Liskov Substitution Principle
  4. Interface Segregation Principle
  5. Dependency Inversion Principle

1. Single Responsibility Principle

Every class in the system should have only one responsibility.

2. Open/Closed Principle

3. Liskov Substitution Principle

4. Interface Segregation Principle

5. Dependency Inversion Principle