7.4. Link Object Actions

An association class acts as both an ordinary class and an association, so an instance of an association class is both an object and a link. An instance of an association class is called a link object. Because of this dual nature, all operations on link objects affect both the link and the object at once.

Figure 7.9 shows the syntax for several link object actions, and Figure 7.10 shows several examples.

Figure 7.9. Link Object Action Syntax

Figure 7.10. Examples of Link Object Actions

The first statement creates a link object ...

Get Executable UML: A Foundation for Model-Driven Architecture now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.