Amazon Interview Question

What is the difference between an interface and an abstract class?

Interview Answer

Anonymous

Feb 7, 2013

An interface is a contract on what a class must implement. An abstract class can include some implementation details. Apart from C++, you need to use interfaces if your class has to behave like multiple contracts.