A variable typed Player can refer to a Goalkeeper instance. A virtual call chooses the override belonging to the actual runtime object.
Inside a Controller method, casey refers to a Goalkeeper with both counts initially zero. Player.RecordTurn is virtual; Goalkeeper overrides it, calls base.RecordTurn, then increments SavesPracticed.
Player selected = casey;
selected.RecordTurn();Make a Player-typed selected reference point to Casey the Goalkeeper
Call RecordTurn through selected
Use the runtime Goalkeeper override
Run its explicit base body, then its specialized update
Finish on the same Goalkeeper instanceUse 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 casey : Goalkeeper. Keep only one receiver object.RecordTurn() from controller to casey and start its activation.selected has declared type Player; runtime dispatch selects Goalkeeper.RecordTurn.Compare this reference with the diagram you built in Violet. Layout may differ; the source meaning, labels, and relevant connections should agree.
After completion, NumberOfTurns and SavesPracticed are both 1. A plain Player receiver would execute only the Player body and would not have a SavesPracticed field.