Skip to main content

SOLID

SOLID is an acronym for the first five object-oriented design (OOD) principles by Robert C. Martin (also known as Uncle Bob).

[[Single-responsibility Principle (SRP)]] [[Open-closed Principle]] [[Liskov Substitution Principle]] [[Interface segregation principle]] [[Dependency inversion principle]]

Inheritance is not code-sharing Is a relationship Need to share common logic Sharing just properties or method signature is not enough Inheritance can put you in a corner What is the point?