全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Constructor, accessor, transformer?

又称: constructor (of an abstract type) · accessor · transformer

Definition 14.2 University Computer Science — Year 1 · 第 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.
在原文中阅读 →