How?s method overriding different from overloading?
Answer Posted / porchelvi.a
Overloading Vs. Overriding:
->Overloading is nothing but static binding.
->Overriding is dynamic binding which will be resolved at
run-time.
->Overloading deals with multiple methods in the same
class with the same name but different signatures.
->Overriding deals with two methods, one in a parent class
and one in a child class, which have the same signature.
->Overloading lets you define a similar operation in
different ways for different data.
->Overriding lets you define a similar operation in
different ways for different object types.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is the difference between first and firstordefault?
What is difference between continue and break in c#?
What is the purpose of static?
Define parsing?
What is the difference between protected and private?
What is difference between yielding and sleeping?
Why are c# strings immutable?
What is difference between list and ilist in c#?
Can I call a virtual method from a constructor/destructor?
What is class method?
What does return do in for loop?
What do you mean by abstract class in c#?
Is inheritance possible in c sharp?
What is a Managed Code??
What does void mean in c#?