试谈C++的多态性和虚函数  

Discussion on Polymorphism and Virtual Function in C++ Language

在线阅读下载全文

作  者:范秋生[1] 

机构地区:[1]黄冈职业技术学院,湖北黄冈438002

出  处:《黄冈职业技术学院学报》2006年第4期82-84,共3页Journal of Huanggang Polytechnic

摘  要:本文分析了C++中的两种多态性:编译时的多态性和运行时的多态性,通过函数重载和虚函数对其进行了探讨,指出了虚函数是实现动态联编的关键。This article analyses two kinds of polymorphism: polymorphism in compiling and polymorphism in running. It argues the two kinds d polymorphism through function overloading and virtual function and points out that virtual function is the crucial technology of realizing dynamic binding.

关 键 词:多态性 虚函数 静态联编 动态联编 

分 类 号:TP311.11[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象