摘要
在Java语言中,抽象类(abstractclass)和接口(interface)是支持抽象类定义的两种机制。正是由于这两种机制的存在,才赋予了Java强大的面向对对象的功能。抽象类和接口之间存在着很多相似性,但是又有本质的区别。对于初学者而言,在使用时很难界定到底采用者两种机制的哪一种。本文具体分析了这两个概念的相同点和相异处。
In the Java language,the abstract class (abstract class) and interface (interface) is to support two mechanisms defined abstract class. It is because the existence of these two mechanisms,it gives the object-oriented Java powerful features.Between abstract classes and interfaces there are many similarities,but there are essential differences. For starters,very difficult to define in the end when in use which of those two mechanisms.This detailed analysis the same point and the differences about these two concepts.
出处
《计算机光盘软件与应用》
2010年第11期148-148,150,共2页
Computer CD Software and Application
关键词
JAVA
类
继承
抽象类
接口
Java
Class
Inheritance
Abstract class
Interface