摘要
C++支持类的多继承,Java采用类的单继承。Java中引入了接口,它定义了一组协议规范,将方法的实现部分放到类中完成,从而将接口继承与实现继承分开。
The Mono Inherition of Class is used in Java,while C++ can apply Mutli-lnherition of Class,And Interface which defines a :oup of conference standards is also introduced in Java,so that the realization of methods can be perfected in the Classes,and the Interface-Inerition can disfingnish with hnplementation -Inherition.
出处
《电脑知识与技术》
2006年第5期161-162,共2页
Computer Knowledge and Technology
关键词
继承
多继承
接口
inherition
Mutli- Inhefidon
interface