Write a Java program to create an interface Shape with the calculateArea() method. Create three classes Rectangle, Circle, and Triangle that implement the Shape interface. Override the calculateArea() method in each subclass to calculate and return the shape's area.
Please login to submit your solution and earn points.
Login Now