How?s method overriding different from overloading?

Answers were Sorted based on User's Feedback



How?s method overriding different from overloading?..

Answer / venu gopal

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 ?    4 Yes 0 No

How?s method overriding different from overloading?..

Answer / maria jerom

Method overloading means same method name but different
parameters. Method overriding means same method name and
parameters also same. In method overloading method will
differentiate with parameters name and in method overriding
method will differentiate with method signature

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C Sharp Interview Questions

What are floating point numbers?

0 Answers  


Where is the output of TextWriterTraceListener redirected?

1 Answers  


Define c# i/o classes?

0 Answers  


Define acid rule of thumb for transactions in c#.

0 Answers  


What is the difference between integer and double?

0 Answers  


Why is the XML InfoSet specification different from the Xml DOM? What does the InfoSet attempt to solve ?

1 Answers  


Does main have to be static c#?

0 Answers  


Which collection will you use to store different types of objects collection like... int, employee, student, object etc.

5 Answers   R Systems,


1. What is lazy loading? 2. What is delay signing? 3. How to transfer view object to presenter in MVP? 4. How to create a generic class? 5. What is Ajax object? 6. What is explicit interface implementation? 7. I1, I2 interfaces have same methods (say PrintName) explicitly implemented in class C1. Now how to call PrintName method from I1? 8. I have a list of Customers. List the customer with maximum orders using LINQ.

1 Answers   Aptron, Volvo,


Is it possible to implement an interface to a structure? Is it possible to extend a struct? Is it possible to inherit a class to struct?

9 Answers   IBM, Logica CMG, TCS,


What is encapsulation in csharp?

0 Answers  


How do you mark a method obsolete?

0 Answers  


Categories