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.3 Abstract classes — extend Shape with Square

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

Write Square so that it extends the abstract class Shape. Pass "Square" up with super, and supply the missing area().

You do not write describe() — it is inherited, and it calls your area(). The program prints Square has area 9.0.

Your solution