You are on page 1of 1

Task 1

Define an interface named Shape with a single method named area that calculates the area of the
geometric shape: public double area();
Task 2
Implement the Shape interface for Rectangle, Circle and Triangle class.

You might also like