Java语言中模拟多重继承的研究与实现  

A Research of Multiple Inheritance and Realization in Java

在线阅读下载全文

作  者:肖海峰[1] 毋国庆[1] 王敏[1] 

机构地区:[1]武汉大学软件工程国家重点实验室,武汉430072

出  处:《计算机工程与应用》2002年第20期123-125,193,共4页Computer Engineering and Applications

摘  要:文章通过比较Java与 C++在多重继承问题上的异同,分析了Java语言不支持多重继承的原因,并使用三种主要技术:转发、接口和向后引用给出了对多重继承的模拟,从而不但实现了多重继承的功能而且提供了比多重继承更简单、灵活,而且更强劲的功能。This paper presents the reasons why Java does not support multiple inheritance of classes by comparing the difference of multiple inheritance between Java and C++.It also realizes the simulation of multiple inheritance in Java by joint use of three main methods: forwarding, interfaces and back-references.So the functions of multiple inheritance are not only realized,but also a more simple,more flexible and more strong functions than multiple inheritance which are provided in Java.

关 键 词:JAVA语言 模拟 多重继承 面向对象 程序设计语言 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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