File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 132
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: 7064
    
  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
Dependency vs Association
Composition in java
Difference between Association & Aggregation & Composition
composition and aggregation