1.

What Is The Difference Between An Abstract Class And Interface?

Answer»

Interface is different from an abstract class because interface is just a TYPE that can be satisfied by a class which implements the interface. INTERFACES in java HELP implement multiple inheritance because a class can extend only one other class.

Interface do not have any IMPLEMENTATION and just are limited to constants and public methods whereas abstract class in java can have partial implementation along with static methods and PROTECTED access blocks. A class can extend only one abstract class but it can implement several interfaces.

Interface is different from an abstract class because interface is just a type that can be satisfied by a class which implements the interface. Interfaces in java help implement multiple inheritance because a class can extend only one other class.

Interface do not have any implementation and just are limited to constants and public methods whereas abstract class in java can have partial implementation along with static methods and protected access blocks. A class can extend only one abstract class but it can implement several interfaces.



Discussion

No Comment Found