Question: public interface FigureInterface { final double PI = 3.14; double perimeter(); // Returns perimeter of this figure. double area(); // Returns area of this figure.

 public interface FigureInterface { final double PI = 3.14; double perimeter();

public interface FigureInterface { final double PI = 3.14; double perimeter(); // Returns perimeter of this figure. double area(); // Returns area of this figure. }

Create Java classes that implement the FigureInterface interface: a. Square-constructor accepts a single argument of type double which indicates the length of a side of the square b. RightTriangle-constructor accepts two arguments of type double that indicate the lengths of the two legs c. IsoscelesTriangle-constructor accepts two arguments of type double that indicate the height and the base d. Para1lelogram-constructor accepts three arguments of type double that indicate the height, the base, and the angle between the nonbase side and the base

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!