How?s method overriding different from overloading?
Answers were Sorted based on User's Feedback
Answer / nitin kumar tomar
Overriding : different methods with the same name but
different Implimentation
Overloading : Several Methods with different signature but
the same name
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / guest
When overriding, you change the method behavior for a
derived class. Overloading simply involves having a method
with the same name within the class.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / chinju
overriding is used for redefining a method in diferent ways.
overloading depends on the method signature not prototype.
method signature
1.no: of parameters or type of parameters or sequance of
parameter
not the return type
Is This Answer Correct ? | 0 Yes | 0 No |
If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?
What are virtual destructors?
0 Answers InfoAxon Technologies,
Which is the best way for keeping the data in XML or SQL server..and why?
Why do we use readonly in c#?
What is returned if you pass the value 12.34 to the parsefloat () function?
Does c# support multilevel inheritance?
Can we inherit class that contains only one private constructor?
What is parallel foreach in c#?
In how many ways you can overload a method?
What is the Signification of the "new " keyword in C#? example
What are annotations in c#?
Explain the difference between pass by value and pass by reference.