Difference between instances and roles in UML
问题 What are differences between instance and role in terms of UML (class diagram, object diagram, sequence diagram) ? 回答1: Roles (e.g., in a composite structure diagram) are another representation of properties shown in a class diagram. On the composite structure diagram one can show a particular configuration of which subtype is used for each property. A role name and type is not underlined. In contrast, an instance specification represents a partial or complete instance. On a class diagram, an