How?s method overriding different from overloading?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / guest
When overriding, you change the method behavior for a
derived class. Overloading simply involves having a method
with the same name within the class.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / mayur
In over-ride we can changeor modify the behaviour of the
function of base class
and in overload the method is invoke with the same name and
the values are different
in overload the function get overloaded one upom the other
and in over ride the method is overridded
| Is This Answer Correct ? | 0 Yes | 0 No |
An abstract class is inherited, an Interface also inherited(multiple inheritance), How it differences.
hi all.... i need code snippets for store and retrive tiff fromat images in sqlserver....... kindy provide it.......
how to deplaoy a project in the system?
Why do we need static class in c#?
What is the difference between proc. Sent by val and by sub?
How many digits are in an integer?
what is virtual method in c#?
From which base class do all Web Forms inherit from?
What is the difference between a class and an object c#?
If a.equals(b) is true then a.gethashcode & b.gethashcode must always return same hash code.
What is the base class in .net from which all the classes are derived from?
What is linq c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)