Question d’entretien chez Persistent Systems

What is the difference between Interface and Abstract Class?

Réponse à la question d'entretien

Utilisateur anonyme

17 sept. 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.