Pergunta de entrevista da empresa EMIS Group

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

Resposta da entrevista

Sigiloso

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