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
Why generics are used?
What is a multicast delegate in c#?
Write down the c# syntax to catch an exception
How to open a new form on button click in Windows forms?
What is an argument in c#?
What is oledb in c#?
Explain the difference between object type and dynamic type variables in c#?
What is string concatenation?
how dot net compiled code will become platform independent?
I wish to create a windows application to perform a similar function as that of the "Search" which is provided to look for related files and folders in the System.. What steps must i follow??
What is thread safe in c#?
Is there regular expression (regex) support available to c# developers?
What is a generic c#?
What is a byte in c#?
Explain async and await?