作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2000, Vol. 26 ›› Issue (03): 103-105.

• 论文 • 上一篇    

面向对象程序中的对象回调技术

王跃宣,钱锦棠   

  1. 杭州电子工业学院 杭州 310037,金华职业技术学院 金华 321017
  • 发布日期:2000-03-25

Object Callback Technology in Object Oriented Program

Wang Yuexuan, Qian Jintang   

  1. Hangzhou Institute of Electronics Engineering, Hangzhou 310037;Jinhua College of Profession and Technology, Jinhua 321017
  • Published:2000-03-25

摘要: 为了提高面向对象程序中代码的复用性和效率,提出了两种在C++环境中利用对象回调实现代码复用的方法,即多重继承和动态类。实践证明,这两种方法能够极大地提高代码效率。

关键词: 对象回调, 多重继承, 预处理

Abstract: In order to improve code reuse and efficiency in object oriented program, this paper presents two methods based on object callback to implement code reuse in C++ programming environment,which are multi-inheritance and dynamic class.lt's proved that they can enhance code efficiency greatly.

中图分类号: