期刊文献+

多态性的表现形式

Manifestations of Polymorphism
下载PDF
导出
摘要 多态性是面向对象程序设计中实现软件代码重用的一个重要特性。多态性是指程序中同一个语法单位, 可以有多种语义、诱发多种型态。多态性包括数据的引用和共用,程序的匹配连接和代码重用等方面。多态性与类和继承机制的组合蕴含着卓越的表达能力,大大加强了软件的可重用性和可扩充性。以简单的C++ 程序实例讨论多态性的各种表现形式:数据的多态性、函数的多态性、重置多态和动态绑定,为面向对象程序设计的教学提供参考。 Polymorphism is a main feature of achieving software code-reuse in object-oriented programming. It means that same expression units in a program can have many different semantemes and evoke different morphas. Polymorphism includes data referencing and sharing, program matching and linking and code resuing etc. The combination of polymorphism and class inheritance has a very strong ability for expressing. It greatly improves software reusability and extendability. This article uses C+ + programs as examples to discuss all kinds of manifestations of polymorphism: data polymorphism, function polymorphism, overriding polymorphism and dynamic binding, which may serve as a good reference in the teaching process of object-oriented programming design.
出处 《吉林大学学报(信息科学版)》 CAS 2005年第S2期178-183,共6页 Journal of Jilin University(Information Science Edition)
关键词 面向对象程序设计 多态性 可重用程序 object-oriented programming (OOP) polymorphism reusable program
  • 相关文献

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部