Professional Documents
Culture Documents
Interface Tasks
Interface Tasks
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.