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
Explain the difference between arraylist and array and in c#?
What is the main purpose of linq?
Explain the difference between passing parameters by value and passing parameters by reference with an example?
Is arraylist faster than linkedlist?
What is a .exe extension files? How is it similar to .dll extension files?
What Is A Satellite Assembly?
What is lazy loading c#?
What is the difference between method overriding and method overloading?
What is an assembly qualified name
What are the advantages of using c#?
What is Asynchronous call and how it can be implemented using delegates?
How many constructors can a class have in c#?
How do you prevent a method from being overridden in c#?
What are sorted lists?
Can an interface extend a class c#?