高级检索

    柔性继承机制的设计与实现

    DESIGN AND IMPLEMENTATION OF SOFT INHERITANCE MECHANISM

    • 摘要: 继承是面向对象程序设计方法中的重要特征之一 .在分析了传统继承机制不足的基础上 ,将类比理论引入面向对象 ,提出了一种新的继承机制——柔性继承机制 .该机制在面向对象程序设计中增加了相似类、相似属性和相似方法的类比对应定义及类比分析和推导方法 ,同时支持子类关系和类比关系 ,从而可更加灵活而有效地对已有软件进行复用 .最后 ,介绍了支持柔性继承机制的语言 ND Polya及其支撑系统的设计和实现

       

      Abstract: 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.

       

    /

    返回文章
    返回