检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《农业网络信息》2007年第4期30-32,共3页Agriculture Network Information
摘 要:C++支持类的多继承,Java采用类的单继承。Java中引入了接口,它定义了一组协议规范,即方法原型,将方法的实现部分放到类中完成,从而将接口继承与实现继承分开。接口继承可以间接替代多继承,具有多继承的优点,而且使用简单。C++ uses multiple inheritance, while Java discards multiple inheritance of class. However Java introduces interface which defines a set of protocol specifications, that is prototypes of methods.The implementing parts are deferred until a class implements the interface.The interface and implementation results are in the independent interface inheritance. Hence, the inheritance provided by interface is simpler and more flexible than multiple inheritance of class.
分 类 号:TP312[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.222