Originally posted by Mohanlal Karamchand:
as in <pre>
composition
/ \
/ \
/ \
/ \
/ \
aggregation association
</pre>
Sorry, I don't think I do understand this diagram...
is it something as simple as
class A{}
class B{
public A a = new A();
}
or is it something deeper than that ?
This may well be a valid implementation of an association relationship between B and A (it may also be an aggregation or even composition - it can't be decided from this code snippet).
The semantic of an association from B to A is that instances of B may send messages to (call methods of) instances of class A.
Notice that for this, B doesn't need to have a field of type A. This may change in UML 2.0.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus