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


Please Help Members By Posting Answers For Below Questions

What do you mean by a windows process in regards to memory allocation?

745


What do you mean by jagged arrays in c#?

664


Why data types are important?

733


What I can do with c#?

736


What is different between Static Constructor and Private Constructor?

684


What is deferred execution in c#?

729


Define using statement in c#?

726


What is the difference between readkey and readline in c#?

684


Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?

776


Can a sealed class be used as a base class?

729


Are tuples mutable c#?

681


Is xml tags are case sensitive?

696


What are the uses of namespaces?

805


Is an array an object c#?

747


Which is executed if an exception has not occurred?

729