Pregunta de entrevista de Intuit

What's the difference between interface and abstract class?

Respuesta de la entrevista

Anónimo

5 de mar de 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.