摘要
软件复用是程序开发过程中最重要的技术之一,通过软件复用可以达到事半功倍的效果。在此以面向对象语言C++为例,针对C++语言的继承和多态的特性,分别介绍了基于类库的软件复用、基于继承的软件复用、基于多态的软件复用和基于模版的软件复用4种软件复用机制。从不同的角度用图和程序2种方法说明了每种复用机制的适用情况,结合教学实践,并用实例加以验证。
The software reuse is one of the most important technologies in the program development process. A multiplier effect can be achieved by the software reuse. In this paper, taking the object-oriented language C+ + as an example, four kinds of software reuse mechanisms (software reuse based on class library, inheritance, polymorphic and template) are intro- duced respectively in allusion to the inheritance and polymorphism features of C++ language. From a different point of view, the application of each software reuse is explained by diagrams and procedures, and verified by the examples in combination with the teaching practice.
出处
《现代电子技术》
2012年第14期37-38,41,共3页
Modern Electronics Technique
基金
西安工业大学北方信息工程学院教学改革研究项目(J1114)
关键词
软件复用
程序开发
C++
教学实践
software reuse
program development
C++
teaching practice