Open/Closed Principle (OCP). "Software entities should be open for extension but closed for modification.". The Open/Closed Principle means you should be able to add new functionality without changing existing code. This…
ReadDependency Inversion Principle (DIP). "High-level modules should not depend on low-level modules. Both should depend on abstractions.". The Dependency Inversion Principle states that we should depend on interfaces or abs…
ReadSingle Responsibility Principle (SRP). "A class should have one, and only one, reason to change.". The Single Responsibility Principle states that a class should have only one job or responsibility. If a class has multip…
ReadLiskov Substitution Principle (LSP). "Objects of a superclass should be replaceable with objects of its subclasses without breaking the application.". The Liskov Substitution Principle means that if class B is a subtype …
ReadInterface Segregation Principle (ISP). "No client should be forced to depend on methods it does not use.". The Interface Segregation Principle states that large interfaces should be split into smaller, more specific ones…
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever