Tutorials / SOLID

THE SOLID HARBOUR · CHAPTER 3 OF 5

Liskov substitution L

A replacement type must preserve the behaviour that callers are entitled to expect from the original contract.

SOLID is a set of design guidelines, not a scorecard. The aim is software that stays understandable as real requirements change.