摘要
本文针对已有的面向对象语言,探讨了不同语言编写的混和类及其对象的组装问题,提出了一种具有统一框架的OOPL模型.在该模型中,引入了类构件和消息体的概念;一个类构件由一个类规范和0到多个类实现组成;引入接口相容和接口一致,以方便混和对象之间的消息通信;引入接口继承和实现继承,以刻画混合类构件之间的继承关系;类规范的操作换名接口说明和类实现的接口调整,可以解决类构件间多继承关系引起的名字冲突问题;消息体集的引人,使得混合对象运行系统在不影响运行模块独立性的同时,可以有多个执行入口.本文还简要介绍了基于该框架模型而设计的BDOL语言及其系统.
Based on existing object-oriented languages,this paper discusses how to compose hybrid reusable objects which are defined by different languages, and presents a kind of unified OOPL framework. In the framework,a class component is constructed by a class-specifier and 0 or multiple class-implementationsi message-bodies make a running system of hybrid objects permit more than one entry without innuencing independence of system modules I interface-consistence and interfacecompatibility is convenient to communication between hybrid objects;interface-inheritance and implementation-inheritance describes inheritance relations among hybrid class components. This framework also provides a solution to name conflict of multiple inheritance by operation-renaming in classspecifier and interface-adjustment in class-implementation. According to the unified framework,BDOL language and its prototype system is designed.
出处
《计算机学报》
EI
CSCD
北大核心
1996年第3期179-185,共7页
Chinese Journal of Computers
关键词
面向对象
软件复用
OOPL模型
程序语言
Object-oriented programming language, software reuse, reusable component.