Intuit interview question

What's the difference between interface and abstract class?

Interview Answer

Anonymous

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.