Skip to main content

Practice · 3 of 6

Diagnose 4: the shadowed constructor

CHALLENGE
Difficulty: intermediate+25 XP

Classify the error, then repair the Wallet class so a new Wallet(500) reports a balance of 500.

Back to lesson: Practice: Diagnosis gauntlet