检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]徐州空军学院,江苏徐州221000
出 处:《现代电子技术》2010年第4期154-156,共3页Modern Electronics Technique
摘 要:虚函数是面向对象的C++语言中的一个非常重要的概念。它充分体现了面向对象思想中的继承和多态性这两大特性,动态绑定是C++中实现多态的一个重要途径,虚函数是动态绑定的基础。通过深入分析VC++编译器实现虚函数的汇编代码。给出在继承下的实现模型,并结合实例,在汇编语言层次研究了多态性的实现机理,揭示了虚函数和动态绑定的本质。Virtual Function is an important concept of object oriented language C++. It presents the Inheritance and Poly- morphism of the idea in object oriented language, dynamic binding is an important approach to realize polymorphism in C++ and virtual function is its foundation, this paper investigates the realization mechanism of virtual function in assemble language in VC++. Aecordi.ng to:inheritance relationship, the realize model of polymorphism is studied by example and in assemble language,and reveals the essence of virtual function and dynamic binding .
分 类 号:TP312[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.7