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
Are arraylist faster or arrays?
What is ienumerator c#?
What is console writeline in c#?
What is use of a HashTable in .NET?
What are the different types of delegates?
What is difference between overloading and short circuiting?
What is iqueryable?
What are the advantages of interface in c#?
Is there a way of specifying which block or loop to break out of when working with nested loops?
Can we inherit a class with private constructor in c#?
What is an enumerator c#?
What is an escape sequence in c#?
Why delegates are type safe?
what is difference between is and as operators in c#?
Write a sample code to write the contents to text file in c#?