Amazon interview question

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

Interview Answer

Anonymous

7 Feb 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.