How is method overriding different from overloading?

When overriding, you change the method behavior for a derived class. Overloading simply involves having a method with the same name within the class.

Showing Answers 1 - 4 of 4 Answers

Ans:

Answer: When overriding, you change the method behavior for a derived class. Overloading simply involves having a method with the same name within the class.

  Was this answer useful?  Yes

learnasp

  • Oct 11th, 2007
 

Overriding a method involves changing the business logic og the method, however the return type and parameters remain same. However in overloading a method you can have multiple methods with same name but different signatures.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions