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

If there are 2 interface IParentInterface & IChildInterface as follows. interface IParentInterface { void InterfaceMethod(); } interface IChildInterface : IParentInterface { void InterfaceMethod(); } Both the interface contains method with same name InterfaceMethod(). How InterfaceMethod() will be handled in IChildInterface as its deriving IParentInterface

3 Answers  


What is the diff between System.String and System.Text.StringBuilder classes?

0 Answers   Siebel,


What is reflection c#?

0 Answers  


You are creating a custom usercontrol, some of the newly created properties are shown in the properties window. How you can hide a new property named theme from the properties window?

0 Answers  


What is difference between ienumerable and list in c#?

0 Answers  


Why we use methods in c#?

0 Answers  


What is the difference between Abstract and Interface?

22 Answers   Agile Software, FER, HCL, Sys Universe,


Are attributes inherited c#?

0 Answers  


What is difference between dynamic and var in c#?

0 Answers  


What is the differences between datagrid, datalist and repeater in .net?

0 Answers  


What is the use of base keyword? Tell me a practical example for base keyword’s usage?

0 Answers  


Can you see a loop recorder?

0 Answers  


Categories