Possible Duplicate:
Interface vs Abstract Class (general OO)
can u tell what is the main difference between abstract class and interface in java.?
The main difference is Abstract class is CLASS and interface is Interface.
An abstract class has one or more methods that are not implemented (i.e. only the method's prototype is declared). It may have one or more methods that are implemented.
In an interface none of the methods are implemented. It only has prototypes for methods and can't have any methods that are implemented unlike an abstract class. Also, more than one interface can be inherited by another class, but multiple inheritance is not allowed when inheriting from abstract classes.
精彩评论