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 |
Why do we use anonymous method in c#?
how to change a value of particular cell in a data grid
How do you debug an ASP.NET Web application?
How do I create a delegate/multicastdelegate?
How to raise an selection changed event associated with listbox in datagridview control with a sample example?Here the listbox is a child control associated with datagridview control.
What is c# used for in the industry?
How to include c++ header files in c# components?
In howmany ways can you deploy an assembly?
What are constructors in c#?
Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?
how can one use hcl and c sharp together?
Name some properties of thread class.
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)