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 yield keyword?
What is difference between method overriding and method overloading?
Name the property of the textbox which cannot be changed at runtime?
Define Virtual folder?
What is a console in c#?
How do you prevent a class from being inherited in c#?
What is a .aspx file?
What is the main purpose of xml?
Why would you use untrusted verification?
What is the compiler of c#?
Can you inherit multiple interfaces?
7 Answers Host4Big, Mind Tree, Moftak Solutions, Siebel Systems,
What are the differences between a class and a struct?