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
What is virtual class in C#?
What is deferred execution?
What does console readline do?
What is datacontract in c#?
What is difference between list and ilist in c#?
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
Is c# an open source language?
Can a dictionary have duplicate keys c#?
What are verbatim strings in c#?
Why we use get and set property in c#?
Define encapsulation?
What are assemblies?
What are interfaces in c#?
Why do we need interfaces in c#?
What is the difference between gettype and typeof in c#?