How?s method overriding different from overloading?

Answers were Sorted based on User's Feedback



How?s method overriding different from overloading?..

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

How?s method overriding different from overloading?..

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

How?s method overriding different from overloading?..

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

Post New Answer

More C Sharp Interview Questions

What?s the difference between System.String and System.StringBuilder classes?

3 Answers  


What's the difference between System.String and System..StringBuilder in C#?

0 Answers   PUCIT,


may we achieve polyphormsm through overloading a funtion?Is it right or wrong concept because i read polyphormism can be achieved through overloading?plz help me thnks

1 Answers  


What does dbml mean in texting?

0 Answers  


What are the three types of operators?

0 Answers  






What is a cs file?

0 Answers  


What is a delegate, why should you use it and how do you call it ?

1 Answers  


Explain the various types of classes used in c#?

0 Answers  


Can we extend static class in c#?

0 Answers  


Why do we parse in c#?

0 Answers  


What?s a satellite assembly?

2 Answers  


How objects are stored in memory?

0 Answers  


Categories