πŸ”— SOLID (object-oriented design)

SOLID (object-oriented design) A mnemonic acronym introduced by Robert C. Martin in the early 2000s: S : Single responsibility principle β€” β€œan object should have only a single responsibility.” O : Open/closed principle β€” β€œsoftware entities should be open for extension, but closed for modification.” L : Liskov substitution principle β€” β€œobjects in a program should be replaceable with instances of their subtypes without altering the correctness of that program.” (see also design by contract ) I : Interface segregation principle β€” β€œmany client specific interfaces are better than one general purpose interface....