Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Constructor, accessor, transformer?

Também chamado de: 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.
Ler no capítulo →