摘要
面向对象编程语言的语义是目前面向对象技术中研究的重点之一,而其中继承机制的语义研究尤为重要。文章主要分析了C++语言中公有派生、私有派生和对象成员的语义,并且给出了这些语义的联系和区别。特别指出的是,在对象成员和私有派生都可用的情况下,尽可能用对象成员实现。
The research on OOPL's semantics is the focal point in OOT's research. The study of semantics about inheritance mechanism is especially important.Here mainly analyses the semantics of public derivation,private derivation and object member in C++ language, and also gives the differences and relations of their semantics. Specially pointing out, if both object member and private derivation can be used, should use object member as far as possible.
出处
《微机发展》
2003年第9期63-64,67,共3页
Microcomputer Development
关键词
C++
面向对象
编程语言
继承机制
语义
inheritance
semantics
assignment compatible rules
public derivation
private derivation
object member