what is the purpose of Interfaces?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
how to implement singelton in C# & its uses?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
Hello! How to do this: "Create manifest utility intended for creating update content files. Application should take a set of files as input parameter and generate XML based manifest file as output one." I use C# and vs.net 2003. It's urgent! Help please, thanks. Mayana
Which of these statements correctly declares a two-dimensional array in c#?
What is the major difference between a custom control and user control?
What do you mean by “finalize” and “finally” methods in c#?
How do I link two windows forms in c#?
all information
What is a console operator?
Method1() { int a=0, b=0, c=0; Monitor.Enter(this) c = 12; b = 3; a = c/b Moniter.Exit(this) } Method1() { int a=0, b=0, c=0; c = 12; b = 3; lock(this){ a = c/b } } Choose correct answer. a. Upon completion, Method1 and Method2 release the lock b. Upon Comletion, Method1 release the lcok and Method2 not. c. Upon Completion, Method2 release the lock and Method1 not. d. Upon Completion, neither Method1 or Method to release the lock.
Is there any way to access private memebers of an object from another object?
What is a jagged array?