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 whitespace in c#?
What is overloading with example?
What's the implicit name of the parameter that gets passed into the set method/property of a class?
Why References are stored on heap and variables on stack?
What are data types examples?
What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?
What is the difference between ienumerable and enumerable?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
What are delegate methods?
What are native methods?
List the difference between the virtual method and the abstract method?
What is a method signature?
What is instantiating a class in c#?
What is the implicit name and type of the parameter that gets passed into the class set method?
What is cls, cts and clr in net?