首页> 中文期刊> 《信息技术》 >基于面向对象编程的代码复用技术

基于面向对象编程的代码复用技术

         

摘要

程序代码复用是软件开发中的关键技术,充分利用代码复用技术不仅可以降低程序编写成本,更重要的是可以提高程序执行效率.文中从类的封装、继承、多态性、重载等核心技术入手,通过抽象类、虚方法、类的转换、接口、接口和类的转换、覆盖和多重继承等技术,以Delphi面向对象的程序设计为例,研究如何在具有相同基类的一组派生类及不具有相同基类的一组派生类等几种情况下实现代码复用,并通过实例验证了代码复用的可行性.%Program code reuse is a key technology in software development,making full use of code reuse technology can not only reduce the cost of programming,but also can improve the efficiency of program execution.Taking Delphi object oriented programming as an example,proceed with key characteristic of class,encapsulation,inheriting,polymorphism and overload,using the technology of abstract class,virtual method,class conversion,interface,interface and class conversion,coverage and multiple inheritance,this paper presents how to carry out code reuse when following situation appeared:a group of derived classes that have or not the same base class.It also verifies the feasibility of code reuse through the relevant examples.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号