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 |
Can property be private in c#?
What is the purpose of a constructor in c#?
Is string a class in c#?
What is the difference between namespace and class?
What is the difference between selection and projection?
How can you sort the elements of the array in descending order?
What is system console writeline in c#?
What is the Difference between value and reference type?
What is the Difference between directcast and ctype?
Does c# supports destructors?
Will the following code compile?
What is xml c#?