Answer Posted / vibhu
When you overload a method, you must change the signature
(the name, number, or type of the parameters). You are
free, as well, to change the return type, but this is
optional. Changing only the return type does not overload
the method, and creating two methods with the same
signature but differing return types generates a compile
error.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is cts, clr?
What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?
What is deferred execution in c#?
What are extensions in c#?
How do I do implement a trace?
Which is faster abstract class or interface in c#?
What is threading in c# with example?
What is thread life cycle in c#?
Explain the difference between a sub and a function in c#.
What is a function c#?
Name the control which cannot be placed in mdi?
What is parallel programming in c#?
Int map to which .net types?
Why do we use lambda expression in c#?
What is the use of inheritance in c#?