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  >  Programming  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 849 of 885    Print  
Inheritance and Aggregation
What is the difference between inheritance and aggregation? When would you use one over the other


  
Total Answers and Comments: 3 Last Update: June 12, 2008     Asked by: naggeek 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 31, 2008 08:34:14   #1  
Aravinda Rao Member Since: March 2008   Contribution: 2    

RE: Inheritance and Aggregation
In Inheritance we have to extend the class where as in Aggregation no need to extend.Directly we can make use of other class in current class by creating object of other class(if required).
 
Is this answer useful? Yes | No
June 12, 2008 19:37:34   #2  
mvrao.bsc Member Since: June 2008   Contribution: 2    

RE: Inheritance and Aggregation
What is the difference between inheritance and aggregation? When would you use one over the other?
 
Is this answer useful? Yes | No
June 12, 2008 19:38:15   #3  
mvrao.bsc Member Since: June 2008   Contribution: 2    

RE: Inheritance and Aggregation
In Inheritance we have to extend the class where as in Aggregation no need to extend.Directly we can make use of other class in current class by creating object of other class(if required).
 

 
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