2.2.2 How to Represent Object Returns in a Sequence Diagram

Object returns are represented in the same way as primitive returns. Say we have a method call to a method like this:

Representing that in a sequence diagram would look like this:

In the return message from the HireEmployee method, the type being returned should be on the line.


Additionally, for any object returns from a method call in the same class it is represented the same as a primitive type.