GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  TCS  >  C
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 77 of 87    Print  
What is the difference between "overloading" and "overridding"?

  
Total Answers and Comments: 5 Last Update: June 13, 2009     Asked by: Srikanth 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 05, 2005 07:42:48   #1  
rajaraman        

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

in overloading the number of arguments for a function vary

where as in overriding the function name and the arguments used in two different classes are same


 
Is this answer useful? Yes | No
September 27, 2006 18:20:10   #2  
somshekar        

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

overloading: by overloading a function we can use the same function for performing similar operations on different data types.

overriding: by overrriding a function we can use the same function name and parameters but perform different operations on data types.


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
September 28, 2006 23:55:55   #3  
Adiraju Santosh Vishal        

RE: What is the difference between "overloading" and "...
yes The difference between overloading and overriding is that1.Overloading:It occurs when two methods belong to same class.2.Overriding occurs when there is inheritance.3.In overriding the signature must be same but here just the code changes.4.Overloaded methods should differ in any one of the following aspects a.Number of arguements b.Type of arguements c.Order of arguements.
 
Is this answer useful? Yes | No
November 28, 2006 07:18:26   #4  
pavankishore        

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

overloading is class declaration.

overriding is methid declaration.


 
Is this answer useful? Yes | No
June 13, 2009 03:22:23   #5  
SUVI_1990 Member Since: June 2009   Contribution: 2    

RE: What is the difference between "overloading" and "overridding"?
Overloading an assignment operator is overloaded in a base class it cannot be inherited in a derived class. And overriding is to create a new class using derived class.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape