摘要
在讨论面向对象程序设计的时候,我们知道对象有很高的抽象程度,模块化的特点明显,便于显式地构造并行,适宜于在并行系统设计中的应用。人们在讨论面向对象程序设计时,还特别强调继承性的使用,把一个语言有没有继承机制,做为是否为面向对象程序设计语言的标志。一个语言使用对象但没有继承机制,
After analyzing some advantages and disadvantages of inheritance in O-O languages, this paper points out that delegation (i. e., from specific to general) corresponding to inheritance (i. e., from general to specific) is also a shared mechanism of O-O lan-guages (i. e. shared between objects, not between class and subclass). The concept and principle of delegation, and relationship between it and inheritance are discassed. Finally, some applications of delegation mechanism are outlined
出处
《计算机科学》
CSCD
北大核心
1993年第1期15-19,共5页
Computer Science