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

在C++中实现运行时的多态性过程的研究
引用本文:王立平,黄勇平. 在C++中实现运行时的多态性过程的研究[J]. 科技广场, 2006, 0(7): 24-26
作者姓名:王立平  黄勇平
作者单位:南昌理工学院计算机系,南昌,330044;南昌理工学院计算机系,南昌,330044
摘    要:介绍了实现运行时的多态性几个重要因素——虚函数、基类和派生类。通过实例阐述了虚函数如何实现运行时的多态性的,用运行结果数据详细分析了运行时的多态性的过程。最后说明了动态绑定实现的原理。

关 键 词:多态性  基类  派生类  虚函数
文章编号:1670-4792-(2006)7-0035-03

Research of the Procedure of Realization Running Polymorphism in C++
Wang Liping,Huang Yongping. Research of the Procedure of Realization Running Polymorphism in C++[J]. Science Mosaic, 2006, 0(7): 24-26
Authors:Wang Liping  Huang Yongping
Affiliation:Department of Computer,Nanchang Institute of Engineering, Nanchang 330044
Abstract:In this article,the important factor of realization running polymorphism(virtual functions, base class;derived class).Set forth virtual functions how to realization running polymorphism on example,detailed analysis the procedure of realization running polymorphism on runed-resulting-data.Account for principle of running dynamic binding at last.
Keywords:Polymorphism  Base Class  Derived Class  Virtual Functions  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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