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 read and readline in c#?
How do I do implement a trace and assert?
What is xml comments in c#?
How does a while loop work?
What is dbcontext c#?
What is gui in c#?
Int map to which .net types?
Describe the difference between inline and code behind - which is best?
Why do we need singleton class in c#?
What are virtual classes in c#?
Define assert() method? How does it work?
Why we use get set property in c#?
What do you mean by default constructor?
What are some of the commonly used commands in sqlcommand?
Name some properties of thread class.