tags
OOP
6 article(s)
Dependency Inversion Principle (DIP) in C#
The principle that ties SOLID together: depend on abstractions, not concretions, and let dependency injection do the wiring.
Interface Segregation Principle (ISP) in C#
Why fat interfaces hurt, and how splitting them into focused contracts stops clients from depending on methods they never call.
Liskov Substitution Principle (LSP) in C#
Why a square should not inherit from a rectangle, and how to keep subtypes honest about the contracts they inherit.
Open/Closed Principle (OCP) in C#
How to add new behavior without touching code that already works, using polymorphism instead of growing switch statements.
Single Responsibility Principle (SRP) in C#
The most misunderstood letter in SOLID: what 'one reason to change' really means, with a before-and-after refactor.