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

基于容器的面向对象技术的多态性实现及应用
引用本文:宋新爱.基于容器的面向对象技术的多态性实现及应用[J].西安石油大学学报(自然科学版),2009,24(5).
作者姓名:宋新爱
作者单位:西安石油大学,计算机学院,陕西,西安,710065
摘    要:多态性是面向对象技术的重要特性之一,C++语言支持静态多态性和动态多态性.静态多态性主要通过函数重载和运算符重载来实现,动态多态性主要通过虚函数和动态联编来实现.多态性使程序设计更加灵活、易维护和易扩展.介绍了动态多态性在C++语言中的实现机制,提出基于容器的动态多态性实现技术,结合VC++6.0中绘图软件开发实例,描述基于容器的绘图过程及动态多态性应用.

关 键 词:动态多态性  动态联编  虚函数  容器

Implement and application of the dynamic polymorphism of object-oriented technology based on container
SONG Xin-ai.Implement and application of the dynamic polymorphism of object-oriented technology based on container[J].Journal of Xian Shiyou University,2009,24(5).
Authors:SONG Xin-ai
Abstract:Polymorphism is one of the most important characteristics of object-oriented technology.C++ language supports static polymorphism and dynamic polymorphism.The static polymorphism is achieved mainly through function overload and operator overload,while the dynamic polymorphism is achieved mainly through virtual function and dynamic binding.The polymorphism makes program design flexibler and easier to maintenance and extend.By the development example of drawing software in visual C++6.0,the implement mechanism of the dynamic polymorphism in C++ language is introduced and the implement technology of the dynamic polymorphism based on container is put forward.The drawing procedure and the application of the dynamic polymorphism based on container are described.
Keywords:dynamic polymorphism  dynamic binding  virtual function  container
本文献已被 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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