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  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 20 of 255    Print  
What is the difference between "overloading" and "overridding"?

  
Total Answers and Comments: 6 Last Update: January 15, 2007   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Anonymous
 
overloading refers to -same name but different definitions and parmeters. 
Overriding refers to --'replacement' of methods.

Above answer was rated as good by the following members:
prabhakar.n
July 07, 2005 07:06:54   #1  
Anonymous        

RE: What is the difference between "overloading" and "overridding"?
overloading refers to -same name but different definitions and parmeters. 
Overriding refers to --'replacement' of methods.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 23, 2005 01:49:18   #2  
Girish        

RE: What is the difference between "overloading" and "overridding"?
In overloading you are extending the definition . 
ie if you over load a operator " + " whith a object then  
them + can be used to perform the basic additoin and defintion given at the time of operator overload . 
 
The overriding which used in Inheretence . ie if you want to change the definition .

 
Is this answer useful? Yes | No
September 01, 2005 12:07:45   #3  
Amit Banerjee        

RE: What is the difference between "overloading" and "overridding"?
Function Overloading is the implementation of static polymorphism where same function name having different defenitions for different uses. 
 
Function overriding is applicable for dynamic polymorphism where where the function name and the definition are same but the function call is decided at the run time according to the type of object reference.

 
Is this answer useful? Yes | No
October 05, 2005 03:24:55   #4  
ravi verma        

RE: What is the difference between "overloading" and ...
overloading
 
Is this answer useful? Yes | No
March 02, 2006 05:56:28   #5  
prince        

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

overloading:

fuctions with same name but they differ by some parameters like no. of arg.,

type of arg.

overriding:

any local function can override global functin


 
Is this answer useful? Yes | No
January 15, 2007 05:01:18   #6  
me        

RE: What is the difference between "overloading" and "overridding"?
overloading is mainly for operators and overriding is for functions

 
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