UML Class Relationships
Posted
by 01010011
on Stack Overflow
See other posts from Stack Overflow
or by 01010011
Published on 2010-03-14T01:18:49Z
Indexed on
2010/03/14
1:25 UTC
Read the original article
Hit count: 359
Hi, I would like to confirm whether I am on the right track when identifying common UML class relationships. For example, is the relationship between:
1 a stackoverflow member and his/her stackoverflow user account categorized as a composition relationship or an aggregation relationship? At first I thought it was an association because this member "has a" account. However on second thought, I am thinking its composition because each "part" (user account) belongs to only one whole (user) at a time, meaning for as long as I am logged into stackoverflow, I have to use this one and only account until I log off. If I log back onto stackoverflow with a different account then its composition again. Do you agree?
2 a database and a person's user account an aggregation relationship? I think so because 1 database (the whole) can store 0...* number of user accounts (the parts) but another database can store the same user accounts.
Finally, can anyone recommend a website that specializes in designing code using UML? Thanks in advance
© Stack Overflow or respective owner