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

What is yield keyword?

0 Answers  


What is difference between method overriding and method overloading?

0 Answers  


Name the property of the textbox which cannot be changed at runtime?

0 Answers  


Define Virtual folder?

0 Answers   Arigo Infotech,


What is a console in c#?

0 Answers  






How do you prevent a class from being inherited in c#?

0 Answers  


What is a .aspx file?

0 Answers  


What is the main purpose of xml?

0 Answers  


Why would you use untrusted verification?

0 Answers  


What is the compiler of c#?

0 Answers  


Can you inherit multiple interfaces?

7 Answers   Host4Big, Mind Tree, Moftak Solutions, Siebel Systems,


What are the differences between a class and a struct?

0 Answers  


Categories