首页 | 本学科首页   官方微博 | 高级检索  
     

Java和C++的继承剖析
引用本文:周磊.Java和C++的继承剖析[J].数字社区&智能家居,2006(14).
作者姓名:周磊
作者单位:商丘师范学院计算机科学系 河南商丘476000
摘    要:C 支持类的多继承,Java采用类的单继承。Java中引入了接口,它定义了一组协议规范,将方法的实现部分放到类中完成,从而将接口继承与实现继承分开。

关 键 词:继承  多继承  接口

The Analysis on Inherition of Java and C++
ZHOU Lei.The Analysis on Inherition of Java and C++[J].Digital Community & Smart Home,2006(14).
Authors:ZHOU Lei
Abstract:The Mono-Inherition of Class is used in Java,while C can apply Mutli-Inherition of Class.And Interface which defines a group of conference standards is also introduced in Java,so that the realization of methods can be perfected in the Classes,and the Interface-Inherition can distinguish with Implementation-Inherition.
Keywords:inherition  Mutli-Inherition  interface  
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号