dcsimg
a question of the association in the uml
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   didi_didididi2
Posted On:   Friday, July 18, 2003 08:36 AM

i am a beginner

i am drawing a classs diagram.



we should use dependency when a method of class A use the paremater which is class B.


1.

should i use association when some attributes' type of class A are class B?


2.

if class A have two attributes: ApplyPerson & ConfirmPerson.
they are instances of class User,
should i use two associations between the class A and the class User?

Re: a question of the association in the uml

Posted By:   Anonymous  
Posted On:   Wednesday, July 23, 2003 04:32 AM

1/ Yes. If A has an attribute of type B, then you have an association from A to B.

2/ Yes. 2 different attributes are shown as 2 links. It would not be the case with a collection of users. A collection would be shown with a single link but a multiplicity greater than one (usually a "*").



S.L.

www.liemur.co.uk
About | Sitemap | Contact