Broken Inheritance

Kind: anti-pattern

Layer: Structural Core

Aliases: Incompatible Override

Record: lexicon:broken-inheritance

Canonical: Lexicon

A subclass that violates its base type's contract, for example by an override that changes the expected inputs or outputs, so substituting it breaks callers that rely on the base behavior.

Listed in Lexicon terms, after Define Module Boundaries and before Fat Interface.

Category

Violates

Negated by

Linked from