| 摘要: |
| 本文给出一种包含多种继承行为的、非常灵活的代码复用机制——广义继承,通过给出其操作语义和一个支持类间子类型关系确认的类机制.为其在面向对象程序设计语言中的实现奠定了基础. |
| 关键词: 面向对象程序设计语言,继承,语义. |
| DOI: |
| 分类号: |
| 基金项目: |
|
| GENERAL INHERITANCE AND ITS IMPLEMENTATION IN OBJECT—ORIENTED PROGRAMMING LANG UAGES |
|
Li Xuandong,Zheng Guoliang
|
| Abstract: |
| A flexible mechanism of rescuing code already written,which contains behav-iors in many varieties of inheritance and is called general inheritance,is introduced in this paper.For its implementation in object—oriented language,its operational semantics and a class mechanism sopporting subtyping—check are given. |
| Key words: Object—oriented programming language,inheritance,semantics. |