Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Constructor, accessor, transformer?

Ook bekend als: constructor (of an abstract type) · accessor · transformer

Definition 14.2 University Computer Science — Year 1 · Hoofdstuk 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.
Lees in het hoofdstuk →