How to represent a static relationship in an UML class diagram
问题 I'm having trouble finding a good answer for how to represent a relationship between two classes A and B, where an instance of A is a static (class scope) variable in B. For example: class A { } class B { static A a; } I'm not even sure if it is a regular association or a dependency (or something else?). One idea would be to use a stereotype on the role name of A in the relationship, but I have never seen that done. And since I understand that it is 'rule' not to use both an attribute and a