GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 231 of 923    Print  
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.



  
Total Answers and Comments: 3 Last Update: November 26, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 12, 2005 09:44:53   #1  
Scott        

RE: What is the difference between overloading and overriding
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.

 
Is this answer useful? Yes | No
November 03, 2005 06:26:39   #2  
Rajesh Sakhamuri        

RE: What is the difference between overloading and ove...

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


 
Is this answer useful? Yes | No
November 26, 2005 10:09:05   #3  
M.Rajarajeswari        

RE: What is the difference between overloading and ove...

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.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape