The controller asks a game to record Jordan's turn. The player is an argument, while the game is the receiver.
Inside an existing Controller method, game1 refers to Game and jordan to a Player with NumberOfTurns equal to 0. Game.RecordTurn(Player participant) increments that player's NumberOfTurns field directly.
If the underlying C# feature is unfamiliar, use the lesson below while reading this example.
game1.RecordTurn(jordan);The controller calls RecordTurn on game1
The argument is the reference to existing jordan
The method parameter now reaches the same Jordan
Game increments Jordan's field directly
The call completes without returning a valueUse these words to follow one execution before drawing it. Keep the same order and the same alternatives as the source; simplify the wording without adding work that the code does not perform.
controller : Controller, game1 : Game, and jordan : Player. All are existing objects.RecordTurn(jordan). Activate game1 while it handles the request.participant refers to jordan; NumberOfTurns becomes 1. The note explains direct field access rather than another method call.completed (void) control return to controller. Do not draw a creation message for Jordan.Compare this reference with the diagram you built in Violet. Layout may differ; the source meaning, labels, and relevant connections should agree.
After the operation, Jordan's count is 1. The third lifeline identifies the argument's target, but no message arrow reaches it because the defined body makes no Player method call.