Question d’entretien chez Intuit

What's the difference between interface and abstract class?

Réponse à la question d'entretien

Utilisateur anonyme

5 mars 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.