carriagereturn

liskovsubstitutionprinciple glossary oo

LiskovSubstitutionPrinciple

_Subclasses should be substitutable for their base classes_

A client of a base class should continue to function properly if a derivative of that base class is passed to it. The contract of the base class must be honoured by the derived class.