Domanda di colloquio di Intuit

What's the difference between interface and abstract class?

Risposta di colloquio

Anonimo

5 mar 2015

In abstract classes you can have function definitions and member data. When you want to keep the abstraction but the children need to implement a function with the same definition that's when you use abstract classes. Otherwise I would use interface.