what is the purpose of interface in c#.net




Answers were Sorted based on User's Feedback



what is the purpose of interface in c#.net..

Answer / sushil

To Achieve Multiple Inheritance

Is This Answer Correct ?    13 Yes 0 No

what is the purpose of interface in c#.net..

Answer / prince1987

To Providing control on the Classes

Is This Answer Correct ?    12 Yes 4 No

what is the purpose of interface in c#.net..

Answer / ankit singh

The main purpose of the interface is implement multiple
inheritance in .net

Is This Answer Correct ?    6 Yes 0 No




what is the purpose of interface in c#.net..

Answer / 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

what is the purpose of interface in c#.net..

Answer / n/a

The main purpose of the interface is to decsribe related
functionality that can belong to any class.

Is This Answer Correct ?    6 Yes 4 No

what is the purpose of interface in c#.net..

Answer / mayur teli

Basic purpose is to use the defined structure/pattern of common implementation on the child location.
In other word we can say that when multiple people are working on same project if they need to use some common functionality (like initializing variables for their module) instead of writing their own method name(like init(), initialize(), setup()) if we write single method name (lets say init) then this method name can be implemented by any developer who derived....
and use to achieve multiple inheritance.

Is This Answer Correct ?    2 Yes 2 No

Post New Answer



More C Sharp Interview Questions

What is overloading and how can this be done ?

4 Answers   MMTS,


Can u create multiple threads of execution ?

1 Answers   ITC Infotech, IBM, UHU,


How u call destructor and dispose methode in c#.NET

1 Answers  


How does a function pointer returns a function pointer?

3 Answers   Wipro,


what are wrapper classes?

1 Answers  






Can you inherit multiple interfaces?

7 Answers   Mind Tree, Host4Big, Moftak Solutions,


What is the difference between interface and abstract class ?

2 Answers   BITS, Basware,


Is it possible to add two 50 digit numbers in .net? If yes what is the code snippet?

2 Answers   Zefer, Cognizant, W3 Solutions,


What are properties and indexer?

1 Answers   TCS,


if you do have a stack overflow profile.what is your ranking?

0 Answers  


If a class is having 4 variables namely type double,type integer,type string,type decimal. If we create an instance of that class those variables which gets into this instance are value types or reference types?

4 Answers   Kanbay,


Difference between ByVal and ByRef?

5 Answers   Microsoft,






Categories