How's 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 - 1 of 1 Answers

overriding keyword cahnge behavour in derive class with same signature,

Overloading means same name but passing different datatype  or different number arguments within the same class

  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.