Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M1254

Liskov Substitution Principle

Liskov Substitution Principle
SystemsHigh supportSystems Theory
Included
account_tree

Version 1.0.0 · Updated 2026-07-30

CORE DEFINITION

Subclasses must be able to replace their base classes without causing errors in the program. That is, subclasses must not change the behavioral contract of the base class.

SCAFFOLDING EFFECT

psychology

Reduce cognitive load

Maintain contract consistency. If you promise a service (base class), your upgraded version (subclass) must be fully compatible with the old functionality, and must not secretly reduce or change behavior, otherwise it will break user trust (system crash).

anchor

Anchor fast decisions

The Liskov substitution principle requires that subclasses (subtypes) can seamlessly replace their base classes without breaking program correctness, meaning the behavioral contract must be compatible with the base class.

MINIMUM ACTION

In progress 0/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%
account_treeGenealogyexpand_more
menu_bookReferencesexpand_more

Source support: Explicit

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Liskov_substitution_principleZH · Explicit
    verified

RELATED MODELS