Interview Questions

Difference Abstract class and Interface

.NET Interview Questions and Answers


(Continued from previous question...)

70. Difference Abstract class and Interface

Abstract class: This class has abstract methods (no body). This class cannot be instantiated. One needs to provide the implementation of the methods by overriding them in the derived class. No Multiple Inheritance.
Interfaces: Interface class contains all abstract methods which are public by default. All of these methods must be implemented in the derived class. One can inherit from from more than one interface thus provides for Multiple Inheritance.

(Continued on next question...)

Other Interview Questions