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 |
Can a private virtual method can be overridden?
Can abstract class be sealed?
What is overloading with example?
What is delegates & multicast delegate?
What is delegates and events?
Explain boxing and unboxing in c#?
What does using do in c#?
Why do we use readonly in c#?
What is a sealed class?
What is the Signification of the "new " keyword in C#? example
What is keywords in c#?
Why do canadians say zed?