Monday, May 11, 2009

Difference between Interface and Abstract class:

1. Interface comes in Inheritance chain while Abstract not
2. One class can inherit multiple interfaces but it can't
inherit multiple abstract class
3. Abstract class can have concert method but interface
can't.
4.An abstract class can contain fields, constructors, or
destructors and implement properties. An interface can not
contain fields, constructors, or destructors and it has
only the property's signature but no implementation.
5.Abstract classes are faster than interfaces.

No comments:

Bookmark and Share