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

Implementation of C++polymorphism

在线阅读下载全文

作  者:李家宏[1] 孙庆英[1] Li Jiahong;Sun Qingying(Huaiyin Normal University,Huai’an 223300,China)

机构地区:[1]淮阴师范学院,江苏淮安223300

出  处:《无线互联科技》2023年第2期131-134,共4页Wireless Internet Technology

基  金:江苏高校“青蓝工程”资助项目,项目名称:基于文本的用户立场分析;江苏省大数据智能工程实验室开放课题资助项目,项目编号:SDGC2158;产学合作协同育人项目,项目编号:201902167012。

摘  要:多态性特征是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.

关 键 词:C++ 多态性 虚函数 

分 类 号:TP312.1[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象