The Point class should be declared as a class and should meet all the requirements listed below. Its purpose is to store the Point (width and height) of a two dimensional, rectangular geometric figure.
The Rectangle class should be declared as a public class that implements the FigureGeometry interface described in the Chapter 3 Assignment sheet and should meet all the requirements listed below. Its purpose is to store of a rectangular figure (using the POint class described in the Chapter 3 Assignment sheet) and provide the methods necessary to calculate the are and perimeter of such a figure.
The square class should be declared as a class the includes the FigureGeometry interface described in the Chapter 3 Assignment Sheet and implements the FigureGeometry interface described in the Chapter 3 Assignment sheet and should meet all the requirements listed below. Its purpose is to store the Point of a square figure (using the Point class describedin the Chapter 3 Assignment sheet) and provide the methods necessary to calculate the area and perimeter of such a figure.
The circle class should be declared as public class that implements the FigureGeometry interface described in the Chapter 3 Assignment sheet and should meet all the requirements listed below. Its pusporse is to store the radius of a circular figure and provide the methods necessary to calculate the area and perimeter of such a figure.
The FigureGeometry interface should be declared as a class FigureGeometry and should meet all the requirements listed below. Its purpose is to declare all the necessary methods that any geometric figure, such as a circle, rectangle, or square, should contain. The FigureGeometry interface should also declare a numeric constant, called PI, which can be used by classes that include the FigureGeometry interface. Students should also note that the inclusion of instance variables within an interface declaration is not allowed; only static constants may be defined within an interface declaration.
The TestAll class should be declared as a class and should meet all the requirements listed below. Its purpose is to implement a main method which creates three objects -- a Circle object, a Square object, and a Rectangle object -- and test each of the files that have been designed for the Chapter 3 Assignment.