Pergunta de entrevista da empresa Expedia Group

Difference between Interface and Abstract Class

Resposta da entrevista

Sigiloso

11 de mar. de 2011

You didn't show the difference, you just said what the definitions of an interface and an abstract class were. The correct answer is, an interface allows for multiple inheritance, and is designed to enforce a set of related properties on a class whereas a class cannot extend more than one abstract class, and the class is directly related to the class its inheriting from.

1