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
Is c# queue thread safe?
How do you declare a method in c#?
Distinguish between array and arraylist in c#?
Are multiple data types stored in System.Array?
What is a multicast delegate in c#?
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
Is null c# operator?
What is a linq in c#?
What is xml serializer?
Which types of inheritances does c# support?
Can an interface extend a class c#?
What's different between c# and c/c++?
What is the base class of all classes in c#?
What is difference between private and static constructor?
What is asp net in c#?