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

C++中虚函数底层实现机制的探讨
引用本文:张海平,杜军,崔英杰.C++中虚函数底层实现机制的探讨[J].电脑编程技巧与维护,2011(2):30-31.
作者姓名:张海平  杜军  崔英杰
作者单位:深圳信息职业技术学院电子通信技术系;
摘    要:分析了C++中虚函数的使用方法,运用反汇编手段对虚函数底层实现机制进行了探讨,并研究了构造函数和析构函数中的虚函数调用。

关 键 词:C++  虚函数  多态  底层实现机制

Probe into Underlying Mechanism of Virtual Function in C++
ZHANG Haiping,DU Jun,CUI Yingjie.Probe into Underlying Mechanism of Virtual Function in C++[J].Computer Programming Skills & Maintenance,2011(2):30-31.
Authors:ZHANG Haiping  DU Jun  CUI Yingjie
Affiliation:ZHANG Haiping,DU Jun,CUI Yingjie (Department of Electronic Communications Shenzhen institute of Information Technology,Shenzhen 518029)
Abstract:This paper analyzes the using method of the virtual functions in C++,probe into underlying mechanism of virtual function by disassemble means,and study on the virtual function use in the constructor and destructor.
Keywords:C    virtual function  polymorphism  underlying mechanism  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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