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 is virtual class in C#?

544


What is deferred execution?

473


What does console readline do?

467


What is datacontract in c#?

481


What is difference between list and ilist in c#?

465






Write a program to create a user control with name and surname as data members and login as method and also the code to call it. (Hint use event delegates) Practical Example of Passing an Events to delegates

509


Is c# an open source language?

544


Can a dictionary have duplicate keys c#?

476


What are verbatim strings in c#?

493


Why we use get and set property in c#?

507


Define encapsulation?

650


What are assemblies?

539


What are interfaces in c#?

512


Why do we need interfaces in c#?

479


What is the difference between gettype and typeof in c#?

451