-
Single Responsibility Principle (SRP): A class should have only one reason to change.
-
Open/Closed Principle (OCP): Software entities should be open for extension but closed for modification.
-
Liskov Substitution Principle (LSP): Subtypes must be substitutable for their base types without altering the correctness of the program.
-
Interface Segregation Principle (ISP): A client should not be forced to implement interfaces it does not use.
-
Dependency Inversion Principle (DIP): High-level modules should depend on abstractions, not on concrete implementations.
-
Notifications
You must be signed in to change notification settings - Fork 0
SOLID principles guide software design for maintainability and scalability. Using real-life examples like User (Single Responsibility), Notification systems (Open/Closed), Media player (Liskov Substitution), different type of Document (Interface Segregation), and Database connection (Dependency Inversion)
ashvin27/SOLID-Principles-with-Real-Life-Examples
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
SOLID principles guide software design for maintainability and scalability. Using real-life examples like User (Single Responsibility), Notification systems (Open/Closed), Media player (Liskov Substitution), different type of Document (Interface Segregation), and Database connection (Dependency Inversion)
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published