How to represent a static relationship in an UML class diagram -
i'm having trouble finding answer how represent relationship between 2 classes , b, instance of static (class scope) variable in b. example:
class { } class b { static a; }
i'm not sure if regular association or dependency (or else?).
one idea use stereotype on role name of in relationship, have never seen done. , since understand 'rule' not use both attribute , relationship represent same member can't either underline attribute called 'a' (since rather want model contents of class a).
just use stereotype <<static>>
model static relationships or attributes
Comments
Post a Comment