How?s method overriding different from overloading?

Answers were Sorted based on User's Feedback



How?s method overriding different from overloading?..

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

How?s method overriding different from overloading?..

Answer / rajkamal

Method Overloading is :

using the same method name for different Purpose.

Method Overriding is :

Adding the Functionality to existing method Header.
Here We providing Method Defination.

Is This Answer Correct ?    3 Yes 0 No

How?s method overriding different from overloading?..

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

How?s method overriding different from overloading?..

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

Post New Answer

More C Sharp Interview Questions

Can a private virtual method can be overridden?

0 Answers  


Can abstract class be sealed?

0 Answers  


What is overloading with example?

0 Answers  


What is delegates & multicast delegate?

2 Answers   Cognizant,


What is delegates and events?

0 Answers  


Explain boxing and unboxing in c#?

0 Answers  


What does using do in c#?

0 Answers  


Why do we use readonly in c#?

0 Answers  


What is a sealed class?

0 Answers  


What is the Signification of the "new " keyword in C#? example

0 Answers   Wipro,


What is keywords in c#?

0 Answers  


Why do canadians say zed?

0 Answers  


Categories