What is Signature and parameter in overloading ?
Answers were Sorted based on User's Feedback
Answer / jacintha
Overloading of methods permits a class, struct, or
interface to declare multiple methods with the same name,
provided their signatures are unique within that class,
struct, or interface.
Overloading of instance constructors permits a class or
struct to declare multiple instance constructors, provided
their signatures are unique within that class or struct.
Overloading of indexers permits a class, struct, or
interface to declare multiple indexers, provided their
signatures are unique within that class, struct, or
interface.
Overloading of operators permits a class or struct to
declare multiple operators with the same name, provided
their signatures are unique within that class or struct.
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / rahul shanbhag
Signature overloading is just method overloading where you have same function varying in sequence of parameters or type of parameters. In this case the return type may be the same or varying..
Parameterised polymorphism happens at class level where the paramenters passed to the constructor decides the type of the object. For ex in generic collections if you say List<int> would create a list with integer elements and List<string> would create List with string elements.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is oledbconnection c#?
Can a class be private in c#?
What?s the difference between an interface and abstract class?
What does assert() do in c#?
How Reflection is used and what it's significance ?
what is overloading & overriding
3 Answers Fulcrum Logic, Synergy,
What is Covariance and contravariance in C#?
What is an actual parameter?
Name the method of servicebase class?
What is tpl in c#?
What is object pool in .net?
Is javascript harder than 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)