2.1.2 How to Represent Object Parameters in a Sequence Diagram

Representing passing objects in a sequence diagram is the same passing as primitive types except the type will be custom.

For example, in the MainWindow we have a call to StealItem that passes in a Food object.

And a method that has a parameter named food of type Food.

To represent this in a sequence diagram, fill in the parenthesis of the method call with the name and type of the parameter using the 'name: type' notation.