Series: Subject: Topic:
Question: 27 of 95

Why do we need interfaces for class in

Asked by: Interview Candidate | Asked on: Jan 9th, 2007
Showing Answers 1 - 4 of 4 Answers
Vijay Sitlani

Answered On : Jan 30th, 2007

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

Login to rate this answer.

Answered On : Mar 26th, 2007

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

Login to rate this answer.

Answered On : Nov 20th, 2008

View all answers by prachiverma

To support multiple inheritence.As interfaces support multiple inheritance

Login to rate this answer.

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.

Login to rate this answer.

Give your answer:

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

Related Open Questions



twitter fb Linkedin GPlus RSS


Interview Question

 Ask Interview Question?


Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.