• Post Reply Bookmark Topic Watch Topic
  • New Topic

Aggregation & Composition Implementation in Java  RSS feed

 
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.
 
Bartender
Posts: 10575
66
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!