Domanda di colloquio di Morgan Stanley

Difference between interface and abstract

Risposta di colloquio

Anonimo

16 ott 2016

A class can implement any number of interfaces but inherit only from one abstract class. An interface supports multiple inheritance but abstract class not Interfaces can extend any number of interfaces at a time but abstract only one abstract class or class at a time. abstract class can have both abstract and concrete methods but interfaces can have only abstract methods.

1