Prev Next

N-Ary Association

n-ary Association diamond used to construct non-binary associations.

Description

An n-Ary Association element is used to model complex relationships between three or more elements, typically in a Class diagram. It is not a commonly-employed device, but can be used to good effect where there is a dependant relationship between several elements. It is generally used with the Association connector, but the relationships can include other types of connector.

UML Class diagram showing a 3-way n-ary Association.

In this example there is a relationship between a Company, an Employee and a Salary.

Toolbox icon

n-ary Association element

Learn more