How?s method overriding different from overloading?
Answers were Sorted based on User's Feedback
Answer / nitin kumar tomar
Overriding : different methods with the same name but
different Implimentation
Overloading : Several Methods with different signature but
the same name
Is This Answer Correct ? | 4 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 ? | 2 Yes | 1 No |
Answer / chinju
overriding is used for redefining a method in diferent ways.
overloading depends on the method signature not prototype.
method signature
1.no: of parameters or type of parameters or sequance of
parameter
not the return type
Is This Answer Correct ? | 0 Yes | 0 No |
how to implement a web service in .net
What is a console device?
What is array class in c#?
Explain the role of Garbage collector and its generations?
What is Named parameter in C#?
What benefit do you get from using a primary interop assembly (pia)?
what are pointer types in c#
Is hashset ordered c#?
Can you inherit multiple abstract classes in c#?
What is callback method in c#?
What is the size of a decimal?
Can a class have multiple constructors c#?