Task 2 of 7 · 0 solved · 7 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

8.4 Choosing — extend and implement

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Write Square that extends the abstract class Shape and implements the Printable interface — one class doing both.

Supply area() and label(), where the label is the name in square brackets. The program prints Square, 9.0, [Square].

Your solution