Practice · 1 of 5
Complete the Square
CHALLENGE
Difficulty: beginner+25 XP
Complete Square extends Shape: the constructor must call super("square"), store side; area() overrides to side * side.
Press Submit to check your solution.
Back to lesson: Practice: Inheritance reps