• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Aggregation & Composition Implementation in Java

 
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
Pie
Posts: 10273
60
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