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 are the 2 types of data types available in c#?
Can you store multiple data types in System.Array?
What is the lock statement in c#?
Can you instantiate a struct without using a new operator in c#?
Explain what a diffgram, and a good use for one Define diffgram? How it be used?
Can private virtual methods be overridden in c#.net?
Is null empty or whitespace c#?
What is using keyword in C#?
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.
When To use HashTable In C#
Why we use dll in c#?
To allow an element to be accessed using a unique key which .NET collection class is used ?
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)