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 difference between an Structure and Class?
What is the difference between finalize() and dispose()?
What is difference between .net and c#?
Explain the concepts of cts and cls(common language specification).
Can abstract class be instantiated c#?
how to insert the data from the grid view to database table though button click.pls send the answer to mail id suri1319@gmail.com
Explain the mechanism of VB.NET/C# achieve polymorphism?
You are designing a user control. You created new property called backgroundimage which is of type image. You wanted to disable storing this property in the user’s form. How to achieve this?
What are the three types of predicates?
What is different about switch statements in c#?
Is java better than c#?
What is a derived class in c#?
Illustrate race condition?
Int map to which .net types?
Why do we use interface in c#?