Skip to main content

Practice · 5 of 5

Fix the shadowed field

CHALLENGE
Difficulty: intermediate+25 XP

Player compiles, but getName() returns null forever. Trace the constructor's assignment and apply the one-token fix.

Back to lesson: Practice: Object workshop