Skip to main content

Practice · 5 of 5

Debug the constructor chain

CHALLENGE
Difficulty: beginner+25 XP

BigBox does not compile: its constructor omits super(...) while Box has no no-arg constructor, and factor is never stored. Fix the constructor chain (signatures stay the same).

Back to lesson: Practice: Inheritance reps