Basic Dot Net Question:
Difference Abstract class and Interface in .NET?
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.
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.
Previous Question | Next Question |
What’s the use of System.Diagnostics.Process class in .NET? | Explain re-clarification of object based in .NET? |