首页 | 本学科首页   官方微博 | 高级检索  
     

面向对象语言中多态技术的缺陷与解决方法
引用本文:宋文津. 面向对象语言中多态技术的缺陷与解决方法[J]. 农业网络信息, 2009, 0(5)
作者姓名:宋文津
作者单位:承德石油高等专科学校,计算机与信息工程系,河北,承德,067000
基金项目:河北省教育科学规划课题 
摘    要:多态性是面向对象语言的关键技术,其使用方法和内部原理是面向对象编程的技术难点之一.本文以C++为例,在分析面向对象语言多态性实现原理的基础上,指出了当派生类实际改写的虚函数与虚方法数量很少时,其技术实现机制存在缺陷,并提出了一种以字符串匹配来代替原有地址查找的解决方法.

关 键 词:多态性  面向对象  虚函数  C++

Limitation of the object oriented programming languages' polymorphism and resolvent
SONG Wen-Jin. Limitation of the object oriented programming languages' polymorphism and resolvent[J]. Agriculture Network Information, 2009, 0(5)
Authors:SONG Wen-Jin
Affiliation:Department of Computer and Information Engineering;Chengde Petroleum College;Chengde 067000;China
Abstract:Polymorphism is the key technique of the Object Oriented Programming Language,which operation method and internal theory is one of difficulty of the Object Oriented Program.This paper analysed the theory of Polymorphism and pointed out the limitation when rewrite few virtual function in derived class,and put forward a kind of solving method with the string matches to replace the seek address.
Keywords:C
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号