Lompat ke konten

Interfaces and polymorphism

Diperkenalkan
Lembar Kerja
Kosa kata
English Makna
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.

Lembar Kerja

Masuk atau buat akun

IGCSE, A-Level & AP