检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:夏承遗[1] 董玉涛[1] 赵德新[1] 唐树刚[1] 陈国章[1] 张桦[1]
机构地区:[1]天津理工学院计算机科学与工程系,天津300191
出 处:《天津理工学院学报》2004年第3期65-67,共3页Journal of Tianjin Institute of Technology
基 金:天津市自然科学基金资助项目(033600211)
摘 要:介绍了C++编程语言中的虚函数及其在进行面向对象程序设计中重要性,并且详细阐述了它在编译器底层虚函数的实现机制.它通过一个vptr和vtable在运行时进行动态绑定,从而能够根据对象类型的不同调用不同的虚函数;并通过实例测试验证了上述机制.The virtual function in C+G-+ and its importance are introduced in this article, and the implementation mechanism of the virtual function is expounded in detail. It is dynamically bound through a virtual pointer(vptr) and virtual table during the running time, and so different class virtual function are called by the object′s type; and this mechanism is verified through a testing program.
分 类 号:TP312[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.73