How?s method overriding different from overloading?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / guest
When overriding, you change the method behavior for a
derived class. Overloading simply involves having a method
with the same name within the class.
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / mayur
In over-ride we can changeor modify the behaviour of the
function of base class
and in overload the method is invoke with the same name and
the values are different
in overload the function get overloaded one upom the other
and in over ride the method is overridded
Is This Answer Correct ? | 0 Yes | 0 No |
What is window application in c#?
How we convert private assembly into public assembly?
What is difference between value and reference types ?
What is the difference between virtual method and abstract method?
Is post back in c#?
What are Uses of CLR
How long does a loop recorder procedure take?
Where CANNOT Destructors be implemented ?
What is console programming language?
What is type casting. Explain it with reference to classes.
2 Answers HCL, JPMorgan Chase,
Where are all .NET Collection classes located ?
How to raise an selection changed event associated with listbox in datagridview control with a sample example?Here the listbox is a child control associated with datagridview control.