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

Explain the difference between arraylist and array and in c#?

590


What is the main purpose of linq?

562


Explain the difference between passing parameters by value and passing parameters by reference with an example?

598


Is arraylist faster than linkedlist?

574


What is a .exe extension files? How is it similar to .dll extension files?

655






What Is A Satellite Assembly?

643


What is lazy loading c#?

589


What is the difference between method overriding and method overloading?

549


What is an assembly qualified name

630


What are the advantages of using c#?

588


What is Asynchronous call and how it can be implemented using delegates?

655


How many constructors can a class have in c#?

577


How do you prevent a method from being overridden in c#?

555


What are sorted lists?

573


Can an interface extend a class c#?

605