Tuesday 19 March 2013

What is the difference between abstract class and interface?


What is the difference between abstract class and interface?  
a) All the methods declared inside an interface are abstract whereas abstract class must have at least one abstract method and others may be concrete or abstract. b) In abstract class, key word abstract must be used for the methods whereas interface we need not use that keyword for the methods. c) Abstract class must have subclasses whereas interface can’t have subclasses.

Blog Author: Vijay Kumar


No comments: