摘要
在面向对象的程序设计中,多态性是一个十分重要的概念.本文讨论继承和虚函数实现多态性的原理,利用多态性合理安排各组件类之间的继承关系,研究软件绘图功能组件类的封装方法.
The polymorphism is a very important and useful conception in object oriented programming. This paper discusses the mechanism of implementing polymorphism by using inheritance and virtual function. It studies how to encapsulate the software's draw map module classes by using polymorphism and correctly deals with inheritance of the classes.
出处
《河南大学学报(自然科学版)》
CAS
2004年第4期53-55,共3页
Journal of Henan University:Natural Science
基金
河南省自然科学基金(0111061500)
关键词
多态性
继承
封装
虚函数
Polymorphism
Inheritance
Encapsulating
Virtual function