Objects can be related to other objects.
Suppose the program has:
That transition is central to preventing a null-reference failure when later code needs the related Team.
Pause before:
player1.team = team1;Inspect:
player1.teamThen step over the assignment.
Inspect again.
You should be able to observe the reference change from its earlier state to a Team object reference.
That is runtime evidence that the relationship assignment executed.
Do not create extra objects simply to fill reference fields.
For:
player1.team = team1;ask:
If the current object diagram does not support that connection, do not invent it.
Object-reference assignment is how the code expresses modeled relationships.