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

试谈C++的多态性和虚函数
引用本文:范秋生.试谈C++的多态性和虚函数[J].黄冈职业技术学院学报,2006,8(4):82-84.
作者姓名:范秋生
作者单位:黄冈职业技术学院,湖北,黄冈,438002
摘    要:本文分析了C++中的两种多态性:编译时的多态性和运行时的多态性,通过函数重载和虚函数对其进行了探讨,指出了虚函数是实现动态联编的关键。

关 键 词:多态性  虚函数  静态联编  动态联编
文章编号:1672-1047(2006)04-0082-03
收稿时间:2006-10-16
修稿时间:2006年10月16

Discussion on Polymorphism and Virtual Function in C + + Language
Fan Qiu-sheng.Discussion on Polymorphism and Virtual Function in C + + Language[J].Journal of Huanggang Polytechnic,2006,8(4):82-84.
Authors:Fan Qiu-sheng
Institution:Huanggang Polytechnic College Huanggang 438002 Hubei
Abstract:This article analyses two kinds of polymorphism: polymorphism in compiling and polymorphism in running.It argues the two kinds of polymorphism through function overloading and virtual function and points out that virtual function is the crucial technology of realizing dynamic binding.
Keywords:Polymorphism  Virtual function  Static binding  Dynamic binding
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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