Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Aggregation & Composition Implementation in Java  RSS feed

 
Vaibhav G Garg
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to implement Aggregation and Composition in Java. Please share the scenario and code snippet for the same.

Thanks.
 
Winston Gutkowski
Bartender
Posts: 10573
65
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vaibhav G Garg wrote:I would like to implement Aggregation and Composition in Java. Please share the scenario

This page contains a very concise description of the difference (the 2nd post, #41).

and code snippet for the same.

Actually, why don't you read the link and see if you can come up with some snippets? We'll be happy to tell if you're wrong, and why.

Winston
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!