Saltar al contenido

Interfaces and polymorphism

Introducido
Material
Vocabulario
English Significado
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.

Material

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP