Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Composition » ?

Definition 3.8 University Computer Science — Year 2 · Chapitre 3 — Inheritance and Polymorphism

A class uses composition when it holds an object of another class as a member (“has a”) and calls it, rather than deriving from it (“is a”). A member may be held by value, or by reference or pointer to an object of an abstract class, in which case the behaviour it provides can be chosen at run time.

Lire dans le chapitre →