Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Class, instance, attribute, method » ?

Aussi appelé : class · instance (object) · attribute · method

Definition 23.1 High School Computer Science · Chapitre 23 — Classes and Objects

A class is a new type of value, defined by the program. A value of that type is an instance of the class, also called an object. Each instance holds named values, its attributes; the functions defined in the class, which act on an instance, are its methods.

Lire dans le chapitre →