22 June 2010

Whats the difference between an interface and a abstract class?

While the purpose of Interface and Abstract Class are same, Abstract Class can have implementation of the method and also fields. An Interface cannot have implementations of the method or any fields. And a class can extend only one Abstract Class, but can implement multiple interfaces.

No comments: