检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.70