Why do we need interfaces for class in C#.net

Showing Answers 1 - 12 of 12 Answers

Vijay Sitlani

  • Jan 30th, 2007
 

In C#.Net Interfaces are required to Implement Multiple Inheritance, As by default .Net doesn't support multiple inheritance.

  Was this answer useful?  Yes

LMatta

  • Mar 26th, 2007
 

First of all C# does not support multiple Inheritance. So to achieve Multiple Inheritance can be done using Interface.

  Was this answer useful?  Yes

Whenever we want the functionality named the same over multiple classes we use interfaces. This is helpful in refering the methods or properties of a class inherited by interfaces as strongly typed. So we create multiple instances of the same interface which is same as in inheritance where the class's objects are overriden by multiple child classes.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions