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
Can I call a virtual method from a constructor/destructor?
Should I use double or float?
What is a generic method?
What is the purpose of dictionary in c#?
Define multicast delegate? How it be used?
Explain the difference between abstract class and interface.
In c#, what will happen if you do not explicitly provide a constructor for a class?
What is writeline in c#?
Why do we need delegates in c#?
Explain the difference between access specifier and access modifier in c#?
How many variables do you need?
Suppose two interfaces have same method, so how will you implement these methods in derive class?
There were a lot of questions asked, so I will list the topic (and add a what is "topic" and know pros/cons). Extreme programming, what is a transaction, various SDLC design approaches, what is a namespace, define a good test case, what is a stored proc, webservice? design patterns? linker? compiler? access modifiers? stack vs. queue? arrays vs. linked lists? sorting algorithms? recursion? OOP principles?
What are the properties of a string class?
What is generic in c#?