This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes Aggregation & Composition Implementation in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Aggregation & Composition Implementation in Java" Watch "Aggregation & Composition Implementation in Java" New topic
Author

Aggregation & Composition Implementation in Java

Vaibhav G Garg
Ranch Hand

Joined: Sep 23, 2011
Posts: 134
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

Joined: Mar 17, 2011
Posts: 7081
    
  16

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

Isn't it funny how there's always time and money enough to do it WRONG?
Artlicles by Winston can be found here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Aggregation & Composition Implementation in Java
 
Similar Threads
Aggregation and composition
Difference between Association & Aggregation & Composition
Composition in java
composition and aggregation
Dependency vs Association