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

Is c# queue thread safe?

704


How do you declare a method in c#?

677


Distinguish between array and arraylist in c#?

745


Are multiple data types stored in System.Array?

891


What is a multicast delegate in c#?

758


3. Use layered architecture for coding. s.no name description 1 abc xxxxxxxxx 2 abc xxxxxxxxx 3 4 5 6 7 8 Select all Clear all Add Delete Name Description Save close

1626


Is null c# operator?

737


What is a linq in c#?

652


What is xml serializer?

687


Which types of inheritances does c# support?

657


Can an interface extend a class c#?

731


What's different between c# and c/c++?

716


What is the base class of all classes in c#?

732


What is difference between private and static constructor?

680


What is asp net in c#?

714