检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:宋新爱[1]
机构地区:[1]西安石油大学计算机学院,陕西西安710065
出 处:《西安石油大学学报(自然科学版)》2009年第5期86-88,92,共4页Journal of Xi’an Shiyou University(Natural Science Edition)
摘 要:多态性是面向对象技术的重要特性之一,C++语言支持静态多态性和动态多态性.静态多态性主要通过函数重载和运算符重载来实现,动态多态性主要通过虚函数和动态联编来实现.多态性使程序设计更加灵活、易维护和易扩展.介绍了动态多态性在C++语言中的实现机制,提出基于容器的动态多态性实现技术,结合VC++6.0中绘图软件开发实例,描述基于容器的绘图过程及动态多态性应用.Polymorphism is one of the most important characteristics of object-oriented technology.C++ language supports static polymorphism and dynamic polymorphism.The static polymorphism is achieved mainly through function overload and operator overload,while the dynamic polymorphism is achieved mainly through virtual function and dynamic binding.The polymorphism makes program design flexibler and easier to maintenance and extend.By the development example of drawing software in visual C++6.0,the implement mechanism of the dynamic polymorphism in C++ language is introduced and the implement technology of the dynamic polymorphism based on container is put forward.The drawing procedure and the application of the dynamic polymorphism based on container are described.
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.7