Dependency Inversion Principle (DIP) Author, August 12, 2024August 19, 2024 High-level modules should not depend on low-level modules. Both should depend on abstractions. Example: Consider… Continue Reading
Interface Segregation Principle (ISP) Author, August 12, 2024August 19, 2024 Clients should not be forced to depend on interfaces they do not use. Example: Imagine… Continue Reading
Liskov Substitution Principle (LSP) Author, August 12, 2024August 19, 2024 Subtypes must be substitutable for their base types. Example: Consider a scenario with a base… Continue Reading
Open/Closed Principle (OCP) Author, August 12, 2024August 19, 2024 Software entities should be open for extension but closed for modification. Example: Let’s say you… Continue Reading
Single Responsibility Principle (SRP) Author, August 12, 2024August 19, 2024 A class should have only one reason to change. Example: Consider a class that handles… Continue Reading
What is Solid Design Principle in Java? Author, August 12, 2024August 12, 2024 The SOLID design principles in Java are a set of guidelines that help developers create… Continue Reading