Question d’entretien chez EMIS Group

What's the difference between an abstract class and an interface?

Réponse à la question d'entretien

Utilisateur anonyme

28 août 2024

1) Interface members cannot have definitions. However non-abstract methods have definitions inside the abstract class. 2) Interface cannot have fields. Abstract classes have fields. 3)Interface inherits from other interface only. But abstract class or interface. 4) The interface inherits from multiple interfaces at a time. its not possible in abstract class.