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  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 19 of 30    Print  
Which one of the following describes the OO concept of Aggregation?
1.A system of objects that implement each other
2.A system of objects that are built using each other
3.A system of objects that define each other
4.A system of objects that are not related
5.A system of objects inherited from each other

  
Total Answers and Comments: 5 Last Update: August 05, 2008     Asked by: Sateesh 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 27, 2006 06:07:15   #1  
lhariPrasad Member Since: September 2006   Contribution: 25    

RE: Which one of the following describes the OO concep...

Hi Sateesh !

I think it is point number 2. A system of Objects that are build using each other, is this correct ?


 
Is this answer useful? Yes | No
June 11, 2008 19:12:42   #2  
Vellaichamy Member Since: November 2007   Contribution: 1    

RE: Which one of the following describes the OO concept of Aggregation? 1.A system of objects that implement each other 2.A system of objects that are built using each other 3.A system of objects that define each other 4.A system of objects that are not r
Aggregation is a variant of the "has a" or association relationship; aggregation is more specific than association. It is an association that represents a part-whole relationship. As a type of association, an aggregation can be named and have the same adornments that an association can. However, an aggregation may not involve more than two classes.

Aggregation can occur when a class is a collection or container of other classes, but where the contained classes do not have a strong life cycle dependency on the container – essentially, if the container is destroyed, its contents are not.

In UML, it is graphically represented as a clear diamond shape on the containing class end of the tree of lines that connect contained class(es) to the containing class.

On the other hand, here’s what composition means:

Composition is a stronger variant of the "has a" or association relationship; composition is more specific than aggregation. It is represented with a solid diamond shape.

Composition has a strong life cycle dependency between instances of the container class and instances of the contained class(es): If the container is destroyed, every instance that it contains is destroyed as well.

The UML graphical representation of a composition relationship is a filled diamond shape on the containing class end of the tree of lines that connect contained class(es) to the containing class.

Basically, aggregation, being the weaker of the two concepts, means simply that objects are build using each other. Therefore, choice 2 is the correct one.


 
Is this answer useful? Yes | No
July 07, 2008 11:41:14   #3  
romeo.koh Member Since: July 2008   Contribution: 1    

RE: Which one of the following describes the OO concept of Aggregation? 1.A system of objects that implement each other 2.A system of objects that are built using each other 3.A system of objects that define each other 4.A system of objects that are not r

2.A system of objects that are built using each other


 
Is this answer useful? Yes | No
July 21, 2008 02:30:20   #4  
Rajesh Madam Member Since: July 2008   Contribution: 1    

RE: Which one of the following describes the OO concept of Aggregation? 1.A system of objects that implement each other 2.A system of objects that are built using each other 3.A system of objects that define each other 4.A system of objects that are not r
1.A system of objects that implement each other
 
Is this answer useful? Yes | No
August 05, 2008 01:40:20   #5  
sujatatewari Member Since: July 2008   Contribution: 1    

RE: Which one of the following describes the OO concept of Aggregation? 1.A system of objects that implement each other 2.A system of objects that are built using each other 3.A system of objects that define each other 4.A system of objects that are not r
2. A system of Objects that are build using each other
 
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