Skip to content

Composition and inheritance

Introduced
Handout
Vocabulary
English Meaning
inheritance/ɪnˈherɪtəns/A class relationship in which a subclass derives behaviour and attributes from a base class.
composition/ˌkɒmpəˈzɪʃn/Building an object by combining it with other objects that provide parts of its behaviour or state.
fragile base classA base class whose changes can unexpectedly break subclasses that depend on its implementation.

Handout

Log in or create account

IGCSE, A-Level & AP