aspose file tools
The moose likes Java in General and the fly likes Compostion,Association and aggregation in java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Compostion,Association and aggregation in java" Watch "Compostion,Association and aggregation in java" New topic
Author

Compostion,Association and aggregation in java

anish jain
Ranch Hand

Joined: Feb 03, 2010
Posts: 129
I want to know how to implement Compostion,Aggregation and Association in Java.

I searched many time but never got any satisfactroy answer
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Please, SearchFirst
john sal
Ranch Hand

Joined: Jul 30, 2010
Posts: 92
Stephan van Hulst wrote:Please read the message following this post


Composition:
Aggregation:

In the case of composition, the Engine is completely encapsulated by the Car. There is no way for the outside world to get a reference to the Engine. The Engine lives and dies with the car. With aggregation, the Car also performs its functions through an Engine, but the Engine is not always an internal part of the Car. Engines may be swapped, or even completely removed. Not only that, but the outside world can still have a reference to the Engine, and tinker with it regardless of whether it's in the Car.
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3056
    
    1

John, I appreciate that you're helping other users out; but when you cite material written by someone else, please provide a link to the source.
john sal
Ranch Hand

Joined: Jul 30, 2010
Posts: 92
Sure I will take care of it in future.

Thanks
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Compostion,Association and aggregation in java
 
Similar Threads
Is that an association?
Aggregation and Compostion!!
aggregation vs composition
Implementation of Association and Aggregation Relationships.
Association and dependency