检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]黄冈职业技术学院,黄冈438002 [2]黄冈师范学院,黄冈438002
出 处:《信息技术》2006年第11期102-103,106,共3页Information Technology
摘 要:多态性是面向对象程序设计的重要特性之一,虚函数是实现多态性的基础。首先阐述了C++的多态性和联编技术,接着分析了C++的两种多态性:编译时的多态性和运行时的多态性,通过函数重载和虚函数对其进行了探讨,最后通过具体实例分析了实现动态联编的条件,指出虚函数是实现动态联编的关键。Polyanorphism is one of the significant features of the object - oriented programming. Virtual function is the basis of realizing polymorphism . Firstly this article expounds polymorphism and binding technology in C ++ language, then analyses its two kinds of polymorphism: polymorphism in compiling and polymorphism in nmning . It argues them through function overloading and virtual function. Finally it analyses the conditions of realizing dynamic binding through some concrete instances and points out that virtual function is the crucial technology of realizing dynamic binding.
分 类 号:TP312[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.7