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

C++中虚函数的应用
引用本文:范秋生.C++中虚函数的应用[J].荆门职业技术学院学报,2007,22(3):42-45.
作者姓名:范秋生
作者单位:黄冈职业技术学院计算机系,湖北黄冈438002
摘    要:多态性是面向对象程序设计的重要特性之一, 虚函数是实现多态的基础.文章对C 中虚函数的定义进行分析,并通过程序举例来探讨虚函数的作用.

关 键 词:虚函数  多态性  虚函数  应用  Function  Virtual  Application  Language  作用  序举  过程  分析  特性  面向对象程序设计  多态性
文章编号:1008-4657(2007)03-0042-04
收稿时间:2006-05-10
修稿时间:2006年5月10日

The Application of Virtual Function in C++ Programming Language
FAN Qiu-sheng.The Application of Virtual Function in C++ Programming Language[J].Journal of Jingmen Vocational Technical College,2007,22(3):42-45.
Authors:FAN Qiu-sheng
Abstract:Polymorphism is one of the features of the object-oriented programming.Virtual function is the basis of realizing polymorphism.This papaer will discuss the use of virtual function through its definition and some programe examples in C++ programming language.
Keywords:virtual function  polymorphism
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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