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

C++程序设计中的多态性技术探讨
引用本文:项芳莉.C++程序设计中的多态性技术探讨[J].黄山学院学报,2004,6(6):17-21.
作者姓名:项芳莉
作者单位:黄山学院,计算机科学与技术系,安徽,黄山,245021
摘    要:在C 程序设计中,多态性理解为不同函数的同一接口。C 语言支持两种多态性:编译时的多态性和运行时的多态性,本文分别给予详细介绍。通过重栽函数、重载运算符和虚函数三个方面对比介绍,能深入领会到多态性的意义和实现,并重点阐述了C 中虚函数的来龙去脉。

关 键 词:多态性  重载  隐藏(超越)  虚函数
文章编号:1672-447X(2004)06-0017-05
修稿时间:2004年11月5日

Technological discussion of Polymorphism in C ++ design program
Xiang FangLi.Technological discussion of Polymorphism in C ++ design program[J].Journal of Huangshan University,2004,6(6):17-21.
Authors:Xiang FangLi
Institution:Xiang FangLi
Abstract:In C ++ design program, Polymorphism is interpreted as the same interface of different function. C ++ language supports two kinds of Polymorphism: static polymorphism and dynamic polymorphism.This text offers the detailed introduction separately. Through Function overload, Operate overload and Virtual function to compare with the introduction again, can understand the meanings of polymorphism and realize thoroughly , and has explained the ins and outs of Virtual function in C ++ especially.
Keywords:Polymorphism  Function overload  Hide(Override)  Virtual function  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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