Passer au contenu

Constructeurs

Introduit
Fiche de cours
Leçon vidéo pour ce sujet Ouvrir la page vidéo
7:20

Création de classes

Voici un étudiant, stocké sous forme de trois variables indépendantes : un nom, une année et une note. C'est correct. Ajoutez maintenant mille étudiants. Vous aurez besoin de trois mille variables…

Narration en anglais · sous-titres en anglais et en 中文 au choix

Dans cette leçon

Leçon vidéo
Vocabulaire
English Sens
constructor/kənˈstrʌktə/A special operation used to initialise a newly created object.
default constructor/dɪˈfɒlt kənˈstrʌktə/constructeur par défaut
Parameters/pəˈræmɪtəz/
overloading/ˌəʊvəˈləʊdɪŋ/Declaring methods or constructors with the same name but different parameter lists, so the applicable version is selected from the call.

Fiche de cours

Se connecter ou créer un compte

IGCSE, A-Level & AP