首页 | 本学科首页   官方微博 | 高级检索  
     

柔性继承机制的设计与实现
引用本文:陶先平,唐宝,马晓星,伊波,吕建.柔性继承机制的设计与实现[J].计算机研究与发展,2001,38(1):98-104.
作者姓名:陶先平  唐宝  马晓星  伊波  吕建
作者单位:[1]南京大学计算机软件新技术国家重点实验室,南京210093 [2]南京大学计算机软件研究所,南京210093
基金项目:国家自然科学基金!(6 94730 38),国家杰出青年科学基金!(6 15 2 5 2 0 4),江苏省青年基金!(BQ96 0 0 5 )
摘    要:继承是面向对象程序设计方法中的重要特征之一。在分析了传统继承机制不足的基础上,将类比理论引入面向对象,提出了一种新的继承机制--柔性继承机制。该机制在面向对象程序设计中增加了相似类、相似属性和相似方法的类比应定义及类比分析和推导方法,同时支持子类关系和类比关系,从而可增加灵活而有效地对已有软件进行复用。最后,介绍了支持柔性继承机制的语言ND_Polya及其支撑系统的设计和实现。

关 键 词:面向对象  程序设计方法  柔性继承机制  软件复用

DESIGN AND IMPLEMENTATION OF SOFT INHERITANCE MECHANISM
TAO Xian-Ping,TANG Bao,MA Xiao-Xing,YI Bo,LU Jian.DESIGN AND IMPLEMENTATION OF SOFT INHERITANCE MECHANISM[J].Journal of Computer Research and Development,2001,38(1):98-104.
Authors:TAO Xian-Ping  TANG Bao  MA Xiao-Xing  YI Bo  LU Jian
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.
Keywords:analogy definition  analogy analysis  analogy derivation  soft  inheritancep
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号