Task 6 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.1 Interfaces — name of the largest shape

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

Fill in largestName so that it returns the name() of the shape with the largest area. Assume the array is not empty.

The program prints Rect.

Your solution