Saturday, February 13, 2010

Differences between an Interface and an Abstract Base Class

  • An abstract class can contain both concrete methods (implemented) and abstract methods (method with only signature – no implementation);an abstract class needs at least one abstract method); an interface does not contain any method implementations.
  • An abstract class can contain constructors and destructors; an interface does not.
  • A class can implement multiple interfaces, but it can inherit from only one abstract class.
Post a Comment