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 are the two keywords used to pass a variable by reference in c#?

2 Answers   IBM,


What are iterators?

5 Answers   TCS,


Which type of variables are under the control of garbage collector?

4 Answers   Kanbay,


How to make a class non-inheritable other than sealed?

7 Answers  


Say true or false,Private constructor have object or not?

7 Answers   IBM,






4. Describe the process when we send a request URL? And who is responsible for that?

0 Answers   Mphasis,


Hi to everybody. Lastweek i had taken an interview on c#. They ask what is boxing & unboxing, Masking.Please tell the answer and it is useful for me.

8 Answers  


What is difference between value and reference types ?

4 Answers   Accenture,


What?s the C# equivalent of C++ catch (?), which was a catch-all statement for any possible exception?

1 Answers  


Suppose in a scenario if we want to display information only until 4.00 p.m and after that means after 4.00 p.m if any one tries to access the information it should give error mesage. Then how will you write a delegate for this ? Give coding.

1 Answers   HP, nTech Solutions, Primetech Software, PS,


directcast(123.34,integer) - should it throw an error? Why or why not?

2 Answers   Wipro,


How to transpose rows into columns and columns into rows in a multi-dimensional array?

4 Answers   Microsoft,






Categories