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.
Press Submit to check your solution.
Back to lesson: Practice: Object workshop