Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Constructor, accessor, transformer?

También llamado: constructor (of an abstract type) · accessor · transformer

Definition 14.2 University Computer Science — Year 1 · Capítulo 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.
Leer en el capítulo →