Skip to content

Interfaces and polymorphism

Introduced
Handout
Vocabulary
English Meaning
interface/ˈɪntəfeɪs/The operations and contracts through which other code uses an object or component.
polymorphism/ˈpɒlɪmɔːfɪzəm/Using a common operation with different implementations selected for different object types.
duck typingAccepting an object based on the operations it supports rather than a declared class relationship.
runtime typeruntime type
dynamic dispatchSelecting a method implementation at runtime according to the object's type.
open/closedopen/closed
substitution/ˌsʌbstɪˈtjuːʃn/Using an implementation or subtype in place of another while preserving the required contract.

Handout

Log in or create account

IGCSE, A-Level & AP