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
Is void a class?
To whom a method is accesssed if it is marked as protected internal ?
What is difference between static and readonly in c#?
What is lock statement in C#?
In C#, explain the difference between overloading and overriding.
Is string a data type in c#?
Is c# used for frontend or backend?
What are examples of desktop applications?
How is lazy loading achieved?
How do I open the console?
What is cls, cts and clr in net?
What is sealed class in c#?
Define c# and list the features.
Define delegate?
What is a event in c#?