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