Pregunta de entrevista de EMIS Group

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

Respuesta de la entrevista

Anónimo

28 ago 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.