Practice · 4 of 4
Debug the class
CHALLENGE
Difficulty: beginner+25 XP
Dog compiles but speak() returns "Woof, I am null" — the field was never stored. Find and fix the one-line constructor bug.
Press Submit to check your solution.
Back to lesson: Practice: Class workshop