Pergunta de entrevista da empresa Intuit

What's the difference between interface and abstract class?

Resposta da entrevista

Sigiloso

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.