VB6.0中类的多态的实现技术——多重ActiveX接口分析 |
| |
引用本文: | 吴业福,袁小玲.VB6.0中类的多态的实现技术——多重ActiveX接口分析[J].电脑开发与应用,2000,13(6):9-11. |
| |
作者姓名: | 吴业福 袁小玲 |
| |
作者单位: | 武汉交通科技大学!武汉430063 |
| |
摘 要: | 类是 Visual Basic6 .0中实现软件重用的最基本方法 ,类的多态是面向对象语言中最复杂的概念。大多数面向对象的程序设计语言 (例如 C++,PB,VFP) ,都是通过继承来提供多态的。 Visual Basic不用继承来提供多态 ,而是通过多重 Active X接口来提供多态。着重分析了通过抽象类和具体类来实现多重 Active X接口、从而实现类的多态的有关技术。
|
关 键 词: | 类 多态 具体类 抽象类 ActiveX接口 |
Analysis of Multiple Active X Interface-Technology for Implementing Polymorphism of Class in VB6.0 |
| |
Abstract: | The class is a basic way of software reuse in Visual Basic6.0,and the polymorphism of class is the most important and complex concept in objectoriented languages.Most objectoriented languages,for example,C++,PB and VFP,provide polymorphism via inheritance,and Visual Basic uses the multiple Active X interface to achieve polymorphism,In the paper,how to achieve the multiple Active X interface with the concrete and abstract class and accordingly to achieve the polymorphism are discussed. |
| |
Keywords: | class polymorphism concrete class abstract class Active X interface |
本文献已被 CNKI 维普 等数据库收录! |
|