User-defined types and procedural data structures as complementary approaches to data abstraction
User-defined types and procedural data structures as complementary approaches to data abstraction
复制标题
用户定义的类型和过程数据结构作为数据抽象的补充方法
DOI:
--
复制
发表时间:
1994
期刊:
影响因子:
--
通讯作者:
J. C. Reynolds
中科院分区:
文献类型:
--
作者:
J. C. Reynolds
User-defined types (or modes) and procedural (or functional) data structures are complementary methods for data abstraction, each providing a capability lacked by the other. With user-defined types, all information about the representation of a particular kind of data is centralized in a type definition and hidden from the rest of the program. With procedural data structures, each part of the program which creates data can specify its own representation, independently of any representations used elsewhere for the same kind of data. However, this decentralization of the description of data is achieved at the cost of prohibiting primitive operations from accessing the representations of more than one data item. The contrast between these approaches is illustrated by a simple example.