This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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
I agree. Here's the link:
subject: Composition and Aggregation
It's not a secret anymore!