Pergunta de entrevista da empresa Palantir Technologies

What is the difference between interface and abstract class

Resposta da entrevista

Sigiloso

19 de nov. de 2012

An interface provides definitions of methods without a body. It has no constants or fields. In contrast, abstract classes can have both methods that provide default behavior and abstract classes that are methods without a body. They create a planned inheritance hierarchy. One consideration is that a class can inherit multiple interfaces but just one abstract class. Here are some more resources: http://docs.oracle.com/javase/tutorial/java/IandI/usinginterface.html