This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Composition and Aggregation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Composition and Aggregation" Watch "Composition and Aggregation" New topic

Composition and Aggregation

Rajesh Mani

Joined: May 12, 2007
Posts: 6
Hi All,

Could anyone please provide a code example which will explain composition and aggregation oops concepts in java. Thanks a ton in advance.

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Have a read through our AssociationVsAggregationVsComposition FAQ and the topics linked from it. It should help.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
It is sorta covered in the JavaRanch Style Guide.
subject: Composition and Aggregation
Similar Threads
Passed SCEA II/III with 92%
How to differentiate among aggregation, association and composition?
what is the differance between Composition and Aggregation?
Question related to dynamic resue of objects
Aggregation vs Composition