A sequence diagram shows which player receives a jersey-setting call and which value travels with that call.
The call is inside an existing Controller method. The variable player1 refers to a Player with SetJerseyNumber(int number), which stores number in its jerseyNumber field and returns void.
If the underlying C# feature is unfamiliar, use the lesson below while reading this example.
player1.SetJerseyNumber(7);The controller calls SetJerseyNumber on player1
The call carries the integer argument 7
player1 stores that value in its jersey field
The operation 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 and player1 : Player. Both objects already exist.SetJerseyNumber(7), preserving the actual argument in parentheses.completed (void); it returns control, not an integer result.Compare this reference with the diagram you built in Violet. Layout may differ; the source meaning, labels, and relevant connections should agree.
After the call, player1's jersey field is 7 under this method contract. The arrow itself shows the request and input, not an object snapshot.