检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:项芳莉[1]
机构地区:[1]黄山学院计算机科学与技术系,安徽黄山245021
出 处:《黄山学院学报》2004年第6期17-21,共5页Journal of Huangshan University
摘 要:在C++程序设计中,多态性理解为不同函数的同一接口。C++语言支持两种多态性:编译时的 多态性和运行时的多态性,本文分别给予详细介绍。通过重载函数、重载运算符和虚函数三个方面对比介绍, 能深入领会到多态性的意义和实现,并重点阐述了C++中虚函数的来龙去脉。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.
关 键 词:多态性技术 重栽函数 虚函数 C++程序设计 重载运算符
分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.117