Sparx Systems Forum

Discussion => General Board => Topic started by: curtp on December 21, 2001, 03:26:05 pm

Title: Associations
Post by: curtp on December 21, 2001, 03:26:05 pm
Great work guys, the associations are getting much closer.  There is one thing I still cannot find a way to do however.

If multiplicity of the "part-end" of an association is n you should be able to select the data type used for this variable.  Like you can when you are dealing with any other attribute.

For example, if I have ClassA which has a composition association with ClassB, where ClassB is the "part-end", I should be able to use a collection data type for the attribute in ClassA.

In Java:

LinkedList m_ClassB;

rather than,

ClassB m_ClassB;

How do I do this?