Domanda di colloquio di BlackBerry

What is the difference between an interface and an abstract class

Risposta di colloquio

Anonimo

23 giu 2010

An Abstract Class can contain default Implementation where as an Interface should not contain any implementation at all. An Interface should contain only definitions but no implementation. where as an abstract class can contain abstract and non-abstract methods. When a class inherits from an abstract the derived class must implement all the abstract methods declared in the base class. an abstract class can inherit from another non-abstract class.