Java中抽象类与接口的比较  被引量:4

The Comparision Between Abstract Class and Interface in Java

在线阅读下载全文

作  者:纪娜[1] 李静[2] 黄婉林[1] 

机构地区:[1]杨凌职业技术学院,陕西杨凌712100 [2]武警工程学院,陕西西安710086

出  处:《杨凌职业技术学院学报》2008年第1期43-46,共4页Journal of Yangling Vocational & Technical College

摘  要:Java抽象类(abstract class)和Java接口(interface)是Java语言中对于抽象类定义进行支持的两种机制。它们之间存在着很多相似性,但是又有本质的区别。对于初学者而言,在使用时很难界定到底采用这2种机制的哪一种。本文从格式、继承性和设计理念上分别分析这2种概念的相同点和相异处。Abstract class and interface are two mechanisms used in Java to define the abstract class. There are some similar identities between them. Actually, the two should be distinguished essentially. Therefore, to many beginners, the problem is very difficult to make a choice which mechanisms should be used. The article is to analyze the differences between abstract class and interface in format,inheritance and idea of design.

关 键 词:JAVA 抽象类 接口 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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