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

If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?

0 Answers   HCL,


What are virtual destructors?

0 Answers   InfoAxon Technologies,


Which is the best way for keeping the data in XML or SQL server..and why?

8 Answers   Infosys, Satyam,


Why do we use readonly in c#?

0 Answers  


What is returned if you pass the value 12.34 to the parsefloat () function?

0 Answers  






Does c# support multilevel inheritance?

0 Answers  


Can we inherit class that contains only one private constructor?

0 Answers  


What is parallel foreach in c#?

0 Answers  


In how many ways you can overload a method?

0 Answers   Siebel,


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

0 Answers   Wipro,


What are annotations in c#?

0 Answers  


Explain the difference between pass by value and pass by reference.

0 Answers   TCS,


Categories