-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relationship between Associations and Dependancies #210
Comments
I came across this article that says that associations imply dependancies.
|
It's the second one. The two things are not mutually exclusive, but we show a dependency arrow only when there is no association arrow. If there is an association arrow, it is pointless to draw a dependency arrow as well; you can think of it as a solid arrow already contains a dashed arrow. |
@damithc In this diagram, is there an association from Lid to Container? |
There is an association between |
You can have multiplicity on either end of the association irrespective of navigability as each association has two multiplicities e.g., in the
|
Thank you! https://user-images.githubusercontent.com/28092058/49424982-3a1fec00-f7d7-11e8-91e4-10faaef188ba.png To make sure that I am on the same page: |
Yes, that's correct. It is not impossible to enforce this multiplicity either e.g., we can write code to go through the entire object structure to ensure no student is part of more than three teams. |
@damithc Thank you |
Hi all,
I wish to clarify the relationship between associations and dependancies.
I see the following 2 possibilities:
To illustrate, we can use this question from the practice exam.
![image](https://user-images.githubusercontent.com/35621759/49338994-77646c80-f665-11e8-980e-41024972c075.png)
The arrow from Container to Lid shows that there is an association between Container and Lid.
But is there also a dependancy between Container and Lid?
The text was updated successfully, but these errors were encountered: