Domanda di colloquio di McKesson

What is the difference between an abstract class and an interface

Risposta di colloquio

Anonimo

13 lug 2017

An interface is class that has definitions but no implementation, so you can inherit from it and implement its methods. An abstract class, like an interface has definitions and can't be instantiated, but also can have implementations that can be used by its children