What is Signature and parameter in overloading ?

Answers were Sorted based on User's Feedback



What is Signature and parameter in overloading ?..

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

What is Signature and parameter in overloading ?..

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 Signature and parameter in overloading ?..

Answer / sibadutta

Can any one help me.

Is This Answer Correct ?    2 Yes 6 No

Post New Answer

More C Sharp Interview Questions

Can property be private in c#?

0 Answers  


What is the purpose of a constructor in c#?

0 Answers  


Is string a class in c#?

0 Answers  


What is the difference between namespace and class?

0 Answers  


What is the difference between selection and projection?

0 Answers  


How can you sort the elements of the array in descending order?

4 Answers  


What is system console writeline in c#?

0 Answers  


What is the Difference between value and reference type?

12 Answers   Wipro,


What is the Difference between directcast and ctype?

1 Answers   Wipro,


Does c# supports destructors?

9 Answers   Choice Solutions,


Will the following code compile?

0 Answers  


What is xml c#?

0 Answers  


Categories