Skip to main content

Polymorphism

This video presents the same text shown beside it, spoken and on screen. It adds nothing the text does not say.

State

Polymorphism means inherited behaviors may perform differently by context — a Dog is an Animal making noise, a Snake is an Animal making noise, and the noises differ.

Show

One "make noise" command in a game menagerie yields a bark here, a hiss there.

Watch for

Same behavior name, context-decided performance — that is the point.

Builds on

Unlocks

  • Nothing yet depends on this.