Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Constructor, accessor, transformer » ?

Aussi appelé : constructor (of an abstract type) · accessor · transformer

Definition 14.2 University Computer Science — Year 1 · Chapitre 14 — Dynamic Arrays and Amortised Analysis

The operations of an abstract type are of three kinds: a constructor creates a value of the type, an accessor returns information about a value without changing it, and a transformer changes it.

An abstract type: the user depends on the interface only, and either implementation can be linked behind it. The fields of struct vec differ between the two files.
An abstract type: the user depends on the interface only, and either implementation can be linked behind it. The fields of struct vec differ between the two files.
Lire dans le chapitre →