Substitutability

Substitutability is an OOP principle stating that we should be able to replace an object (e.g. a class) with a sub-object (e.g. a class that extends the first class) and not break the program.

Formally known as the Liskov substitution principle (the L in SOLID)


Backlinks