A sequence diagram records the actual values used to create this Player, rather than the names of every possible constructor input.
Inside a Controller method, Player has the two-parameter constructor from the linked class lesson. It stores name and jerseyNumber in the new instance.
If the underlying C# feature is unfamiliar, use the lesson below while reading this example.
Player jordan = new Player("Jordan", 7);The controller begins creating a Player
It supplies the text Jordan and integer 7
A new Player begins its lifetime at that creation request
The constructor initializes the new instance
The completed creation expression supplies its reference to the callerUse 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 lifeline.jordan : Player participant so its heading begins at the creation message, below the existing caller's start.new Player("Jordan", 7). The actual values travel with this request.Name = "Jordan" and JerseyNumber = 7 to identify the initialized state, then show creation completion returning the new instance reference.Compare this reference with the diagram you built in Violet. Layout may differ; the source meaning, labels, and relevant connections should agree.
The constructor stores the actual input values. The diagram's completion arrow represents creation expression completion, not a C# return statement written inside the constructor.