what is the purpose of interface in c#.net

Answer Posted / vai bhav

Basicalluy interface is used in any oops supported langusge
like c#.net to overcome the problem of multiple inheritance
i.e. inheriting more than one classes which have same
function also.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is console based application?

753


What is difference between the "throw" and "throw ex" in .net?

712


Tell me the difference between call by value and call by reference.

767


You are designing a user control. You created new property called backgroundimage which is of type image. You wanted to disable storing this property in the user’s form. How to achieve this?

755


When do you generally use a class over a struct?

763


how to implement a web service in .net

733


What is the difference between internal and protected in c#?

687


What is wpf c#?

685


What is c-sharp (c#)?

752


How do I create a multilanguage, single-file assembly?

734


If multiple interfaces are inherited and they have conflicting method names; What will happen ?

749


What happens if a static constructor throws an exception?

741


What is a hashset c#?

688


Can we inherit a private class in c#?

676


Can we inherit two classes in c#?

746