Skip to content

Contains clear examples and explanations of LSP of SOLID design principles.

License

Notifications You must be signed in to change notification settings

saddamhossain/LiskovSubstitutionPrinciple

Repository files navigation

SOLID Principles

SOLID principles are the software design principles that enable us to manage most of the software design problems. SOLID is a set of five design principles for writing maintainable and scalable software. These principles were introduced by Robert C. Martin, also known as Uncle Bob, in the early 2000s.

SOLID is an acronym where:

  • S stands for Single Responsibility Principle (SRP)
  • O stands for Open-Closed Principle (OCP)
  • L stands for Liskov Substitution Principle (LSP)
  • I stands for Interface Segregation Principle (ISP)
  • D stands for Dependency Inversion Principle (DIP)

In this repository, we embrace the LSP (Liskov Substitution Principle). This is what LSP means:

  • A child/sub/derived class should be substitutable for its base class without causing unexpected behavior. This principle is very similar to the Interface Segregation Principle.

⭐ Giving a star

If you find this repository valuable, please consider motivating me to create more by giving a star. Thank you.