Home > DeveloperSection > Forums > Difference between Abstract classes and Interfaces
Royce Roy
Royce Roy

Total Post:149

Posted on    April-21-2015 3:21 AM

 .NET Java  Abstract Class  Interface 

 1 Reply(s)
 853  View(s)
Rate this:
Difference between  Abstract classes and Interfaces in Java

Mayank Tripathi
Mayank Tripathi

Total Post:397

Posted on    April-21-2015 3:47 AM

Abstract classes
1)An abstract class can have method body (non-abstract methods).
2)An abstract class can have instance variables.
3)An abstract class can have constructor.
4)An abstract class can have static methods.
5)You can extends one abstract class

Interface have only abstract methods.
An interface cannot have instance variables.
Interface cannot have constructor.
Interface cannot have static methods.
You can implement multiple interfaces.


Don't want to miss updates? Please click the below button!

Follow MindStick