What is overloading and overriding ? pl explain diff between them

Questions by pghare

Showing Answers 1 - 1 of 1 Answers

Kamlesh Patani

  • May 24th, 2006
 

Overloading : When you use same method name for diffrent purpose it is call overloading. For example, You can use Add(x,y) method for addition of two parameter, and you can define Add(x,y,z) for addition of three parameter in same class.

Overriding : is the implementing exiting method again. If Area method is implemented in parent class , you can override this method in child class by re-defining this method.

  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