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

how to implement a web service in .net

0 Answers  


What is a console device?

0 Answers  


What is array class in c#?

0 Answers  


Explain the role of Garbage collector and its generations?

0 Answers   MCN Solutions,


What is Named parameter in C#?

0 Answers  






What benefit do you get from using a primary interop assembly (pia)?

0 Answers  


what are pointer types in c#

0 Answers   Cognizant,


Is hashset ordered c#?

0 Answers  


Can you inherit multiple abstract classes in c#?

0 Answers  


What is callback method in c#?

0 Answers  


What is the size of a decimal?

0 Answers  


Can a class have multiple constructors c#?

0 Answers  


Categories