What is the difference between overloading and overriding


Answered by Scott on 2005-05-12 09:44:53: Overloading: The same method name with a different signature (generally input argument list) written in the same class. 
 
Overriding: The identical method signature from a parent (super) class written in a subclass and modification of the method body occurs.

Showing Answers 1 - 3 of 3 Answers

Scott

  • May 12th, 2005
 

Overloading: The same method name with a different signature (generally input argument list) written in the same class. 
 
Overriding: The identical method signature from a parent (super) class written in a subclass and modification of the method body occurs.

  Was this answer useful?  Yes

Rajesh Sakhamuri

  • Nov 3rd, 2005
 

OVERLOADING:passing the same metohd name with different arguments,this can be written with in the class.EX:Static binding.

OVERRIDDING:passing same method name,with the same signatures in the child class also.this is relation with the parent & child class.EX:Dynamic binding.By Rajesh

  Was this answer useful?  Yes

M.Rajarajeswari

  • Nov 26th, 2005
 

Overloading:Methods or functions  having same method or function name but have different no. of arguements or different types of arguements.

Overriding: Method or functions having same method r function name,type and no. of arguments are also same.

  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