Domanda di colloquio di Persistent Systems

What is the difference between Interface and Abstract Class?

Risposta di colloquio

Anonimo

17 set 2018

Interface contains methods which are abstract implicitly. Abstract Class can contain abstract or non abstract methods. Variables are final in interface while they may or may not be in abstract class. Abstract classes cannot be instantiated. In java multiple inheritance is not possible but it can be done using Interfaces.