|国家预印本平台
首页|面向对象语言多态性的限制

面向对象语言多态性的限制

Limitation of object-oriented language’s polymorphism

中文摘要英文摘要

多态性是面向对象语言的规则最为复杂一项关键技术,本文中以C++语言为例,分析了多态技术,指出了编程时覆盖父类虚函数时限制,并且提出了一种利用字符匹配代替地址搜索技术的解决办法。

he polymorphism of object-oriented language is the key technology, the use of the method and internal principle is one of the most difficult technologies. In this paper, C + + as an example, analyzed 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.

曾希君、于博

计算技术、计算机技术

面向对象多态性虚函数

object-orientedpolymorphismvirtual function

曾希君,于博.面向对象语言多态性的限制[EB/OL].(2009-07-28)[2025-08-02].http://www.paper.edu.cn/releasepaper/content/200907-603.点此复制

评论