what is the purpose of Interfaces?

Answers were Sorted based on User's Feedback



what is the purpose of Interfaces?..

Answer / chandu

Simply you can say "to achieve multiple inheritance"

Is This Answer Correct ?    11 Yes 1 No

what is the purpose of Interfaces?..

Answer / chinju

interface is used for multiple inheritance.all methods in
the interfaces must be implemented in the child class

Is This Answer Correct ?    8 Yes 1 No

what is the purpose of Interfaces?..

Answer / mohammed ameem

Interfaces are used for defining the set of members which
need to be implemented. Interfaces allows calling methods of
object which may be remotely located or instantited. Thus,
Interface act as interface between the distributed
applications. Hence the name opts

Is This Answer Correct ?    6 Yes 0 No

what is the purpose of Interfaces?..

Answer / sunil mahla

In big companies, project manager understand the client
requirement and make interfaces. These interfaces are then
distributed to the under developers.
Since interfaces are just outline of the method, so
developers must use them in there class and code them.
Developer need only concentration on coding. He need not
worry about which methods he use to achieve client requirement.

So interfaces provide only outline to the developer to get
the goal.

Is This Answer Correct ?    4 Yes 1 No

what is the purpose of Interfaces?..

Answer / pradip kr sen

Basic Purpose is to use the defined structure/Pattern of
common implementation on the child location.

For example , in a straightline interface you defined
{x1,y1} and {x2,y2} as a parameter.
So while constructing triangle class with the help of
straighline interface(through inheritance) , you need to
follow the same number of parameter defined
on 'Straighline' Interface.

Is This Answer Correct ?    4 Yes 2 No

what is the purpose of Interfaces?..

Answer / mohit jethva

1. Interface is use for follow the some coding standard
2. If we create interface then each and every devloper has
to implement all the methods.
3. For e.g. If we are creating application for Vichele then
we need to create one interface for two wheeler and one
interface for four wheeler. When any of devloper is going
to extend it then he/she has to implement every method like
Break , Gear , Liver etc....
4. Force to implement all the methods from interface.
5. Multiple inheritance.

Is This Answer Correct ?    1 Yes 0 No

what is the purpose of Interfaces?..

Answer / amit

interface is used for multiple inheritance.all methods in
the interfaces must be implemented in the child class

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Sharp Interview Questions

Explain manifest & metadata?

5 Answers   IBM, Wipro,


What are collection classes?

0 Answers  


Can a struct inherit from another struct or class in c#?

0 Answers  


FOR EXAMPLE : CLASS Dotnet { } creating object: Dotnet dn=new Dotnet(); NOW THE QUESTION IS WHICH IS CALLED AS OBJECT ? EITHER dn OR new Dotnet() and CAN YOU PROVE YOUR ANSWER????? PLEASE REPLY...

2 Answers  


how to implement singelton in C# & its uses?

1 Answers   TCS,






What are the Types of instancing properties and explain each. Explain the difference between multiuse,singleuse and globalmultiuse and which is default

0 Answers   DELL,


What do u mean by delegation of authority?

0 Answers  


Is c# code is unmanaged or managed code?

0 Answers  


How to implement an object pool in c#.net.

0 Answers  


What?s the implicit name of the parameter that gets passed into the class? set method?

1 Answers  


What is inheritance in csharp?

0 Answers  


Differentiate between method overriding from method overloading with its functionality?

0 Answers   Siebel,


Categories