期刊文献+

C++多态性的实现过程 被引量:2

Implementation of C++polymorphism
下载PDF
导出
摘要 多态性特征是C++中最为重要的一个特征,熟练使用多态是学好C++的关键,而理解多态的实现机制及实现过程则是熟练使用多态的关键。文章在分析多态性基本属性的基础上,结合具体程序实例重点分析了动态多态的实现机制,并结合虚函数和联编原理分析了动态多态的实现过程。 Polymorphism is the most important feature in C++.Skillful use of polymorphism is the key to learn C++well,while understanding the implementation mechanism and process of polymorphism is the key to use polymorphism skillfully.Based on the analysis of the basic attributes of polymorphism,this paper focuses on the implementation mechanism of dynamic polymorphism with specific program examples,and analyzes the implementation process of dynamic polymorphism with virtual function and binding principle.
作者 李家宏 孙庆英 Li Jiahong;Sun Qingying(Huaiyin Normal University,Huai’an 223300,China)
机构地区 淮阴师范学院
出处 《无线互联科技》 2023年第2期131-134,共4页 Wireless Internet Technology
基金 江苏高校“青蓝工程”资助项目,项目名称:基于文本的用户立场分析 江苏省大数据智能工程实验室开放课题资助项目,项目编号:SDGC2158 产学合作协同育人项目,项目编号:201902167012。
关键词 C++ 多态性 虚函数 C++ polymorphism virtual function
  • 相关文献

参考文献5

二级参考文献11

  • 1夏承遗,董玉涛,赵德新,唐树刚,陈国章,张桦.C++中虚函数的实现机制[J].天津理工学院学报,2004,20(3):65-67. 被引量:6
  • 2蓝雯飞,周俊,陈淑清.JAVA语言的多态性及其应用研究[J].计算机系统应用,2005,14(4):80-83. 被引量:3
  • 3赵红超,方金云,唐志敏.C++的动态多态和静态多态[J].计算机工程,2005,31(20):72-73. 被引量:7
  • 4BruceEckel.C++编程思想[M].刘宗田,译.北京:机械工业出版社,2006:2-10.
  • 5管建和.C++语言程序设计[M].北京:机械工业出版社,2006:226-242.
  • 6钱能.C++程序设计教程[M].北京:清华大学出版社,2000..
  • 7郑莉编.C++语言程序设计[M].北京:清华大学出版社,2009.
  • 8(美)stanley B.LippmanBarbara E.Moo joseeLajoie著.李师贤,等,译.C++primer.人民邮电出版社.2006.
  • 9(美)普拉塔(prata,S)著.孙建春,韦强,译.C++primer plus.人民邮电出版社.2005.
  • 10(美)埃克尔(Bruce Eckel),(美)Chuck Allison.刘宗田,袁兆山,潘秋菱,等,译.C++编程思想.机械工业出版社.2011.

共引文献6

同被引文献10

引证文献2

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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