Tag: lsp
All the articles with the tag "lsp".
SOLID: Liskov Substitution Principle
Published: at 08:05 PMThe Liskov Substitution Principle (LSP) ensures subtypes can replace their base types without issues. Violations occur when subtypes change expected behavior, often signaled by type checks or unimplemented methods. To follow LSP, ensure subtypes fully support the base type's behavior.