문제

Case A Say you have 2 classes Model and Settings.

Settings contains nothing but public static constants used throughout the application. What type of relationship would you say these 2 classes have?

Case B Say you have a IntersectionManager singleton class that is being used by classes Road and Car to get some data out of it.

What is the name of "class uses class" relationship in UML?

Would you use the same relationships for both case A and case B? What UML arrow would you use to demonstrate this relationship?

도움이 되었습니까?

해결책

The regular black & solid association line in both cases. Optionally with arrows on either or both ends to illustrate the direction of usage.

다른 팁

Well, you could use the "uses" relationship (dotted or dashed line, open arrow). I found a nice and helpful overview at http://usna86-techbits.blogspot.de/2012/11/uml-class-diagram-relationships.html.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top