期刊文献+

关于C++动态多态性实现机制的探究 被引量:1

Research on the Implementation Mechanism of Dynamic Polymorphism in C++
下载PDF
导出
摘要 多态性是C++的一个关键技术。在教学过程中,学生对多态性理解起来有一定的难度,尤其是动态多态性,它的实现基础是类继承关系和虚函数。分析包含虚函数的类的虚函数表及其定义的对象中的虚表指针,并结合实例来探讨单继承和多重继承下的动态多态性的实现机制。 Polymorphism is one of the important technologies of C++. During the whole teaching process, it's difficult for students to comprohend these knowledge,especially dynamic polymorphism, its foundation is virtual function. Analyzes virtual tables for a class which has some virtual functions and vfptr for class object, also discusses the implementation mechanism of dynamic polymorphism according to different kinds of inheritance relationship by taking many programming samples.
作者 董泉伶
出处 《现代计算机》 2009年第11期108-111,共4页 Modern Computer
关键词 多态性 虚函数 虚函数表 虚表指针 Polymorphism Virtual Function Virtual Table Vfptr
  • 相关文献

参考文献4

二级参考文献17

  • 1夏承遗,董玉涛,赵德新,唐树刚,陈国章,张桦.C++中虚函数的实现机制[J].天津理工学院学报,2004,20(3):65-67. 被引量:6
  • 2杨亚俊,陈榕,杨青松.从C++多态到CAR多态研究软件复用的发展[J].计算机工程与设计,2005,26(9):2291-2294. 被引量:3
  • 3赵红超,方金云,唐志敏.C++的动态多态和静态多态[J].计算机工程,2005,31(20):72-73. 被引量:7
  • 4Eckel B 刘宗田译.C^++编程思想[M].北京:机械工业出版社,2000..
  • 5侯俊杰.深入浅出MFC[M].武汉:华中科技大学出版社,2001..
  • 6Lippman S B 侯捷译.深度探索C^++对象模型[M].武汉:华中科技大学出版社,2001..
  • 7无.C^++语言和面向对象程序设计[M].北京:清华大学出版社,1998..
  • 8侯捷(译),深度探索C++对象模型,2001年
  • 9侯俊杰,深入浅出MFC,2001年
  • 10刘宗田(译),C++ 编程思想,2000年

共引文献18

同被引文献2

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部