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 |
What is array and types of array in c#?
Example of value type and refarnce type
How do you prevent a method from being overridden in c#?
What is a static class in c#?
what will be the output of the given below coding. using System; public class Exercise { static void OddNumbers(int a) { if (a >= 1) { Console.Write("{0}, ", a); a -= 2; OddNumbers(a); } } public static int Main() { const int Number = 9; Console.WriteLine("Odd Numbers"); OddNumbers(Number); Console.WriteLine(); return 0; } }
c# code for how to merge two sorted arrays Input : A = 2,5,8,4 B = 3,9,10,5 Output : 2,3,4,5,5,8,9,10
Is c++ or c# better?
What is the use of console readkey in c#?
How many bytes is a char c#?
What can we do to handle multiple exceptions?
What is a jagged array?
How a two-dimensional array declared in C#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)