Basic Dot Net Question:

Difference Abstract class and Interface in .NET?

Tweet Share WhatsApp

Answer:

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.

Download Dot Net PDF Read All 116 Dot Net Questions
Previous QuestionNext Question
What’s the use of System.Diagnostics.Process class in .NET?Explain re-clarification of object based in .NET?