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 .cs file in c#?

511


Can we declare private class in c#?

466


What is cshtml extension?

514


What is overriding in c#?

486


What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?

506






What is readline library?

500


Do vs while c#?

480


Are structs value types or reference types?

562


Is it true that all c# types derive from a common base class?

520


What is the interface in c#?

504


What does return do in for loop?

471


Which attribute is used in order that the method can be used as webservice?

506


list the steps in code compilation in c#?

486


What is datarelation c#?

455


What does out mean c#?

474