摘要
继承是面向对象程序设计方法中的重要特征之一 .在分析了传统继承机制不足的基础上 ,将类比理论引入面向对象 ,提出了一种新的继承机制——柔性继承机制 .该机制在面向对象程序设计中增加了相似类、相似属性和相似方法的类比对应定义及类比分析和推导方法 ,同时支持子类关系和类比关系 ,从而可更加灵活而有效地对已有软件进行复用 .最后 ,介绍了支持柔性继承机制的语言 ND
Inheritance is one of the most important features of object oriented programming technology. Based on the analysis of the traditional inheritance mechanism, a new inheritance mechanism——soft inheritance is proposed, which enhances the traditional inheritance by providing analogy definition, analogy analysis and analogy derivation in object oriented programming. The new mechanism supports both the traditional sub class relationship and the new analogy relationship and consequently makes software reuse more flexible and effective. Meanwhile, a new self designed object oriented language ND Polya supporting soft inheritance is discussed and its supporting system is introduced.
出处
《计算机研究与发展》
EI
CSCD
北大核心
2001年第1期98-104,共7页
Journal of Computer Research and Development
基金
国家自然科学基金!(6 94730 38)
国家杰出青年科学基金!(6 15 2 5 2 0 4)
江苏省青年基金!(BQ96 0 0 5 )
关键词
面向对象
程序设计方法
柔性继承机制
软件复用
analogy definition, analogy analysis, analogy derivation, soft inheritancep