Blogger

Delete comment from: Java67

de said...

1. A class can implement more than one interface(Multiple Inheritance is possible with interface). But A class can not extend more than one abstract class(Multiple Inheritance is not possible with class).

2. If You want to add a new method in interface, you need to implement that method in all the classes that implementing the interface. But if you want to add a new method in abstract class, you can add it as a non abstract method. You don't need to implement it in all the classes that extending the abstract class.

3. Interface don't have constructors. But Abstract class has constructors.

Prathap
Java training in chennai

Aug 12, 2013, 8:23:40 PM


Posted to 5 Difference between Interface and Abstract class in Java? [Answer]

Google apps
Main menu