Question: Please Answer this ASAP This project will create 2 classes: Point2D and RectangleType. Point2D represents a 2d-point with x and y values. RectangleType represents a

Please Answer this ASAP
Please Answer this ASAP This project will create 2 classes: Point2D and
RectangleType. Point2D represents a 2d-point with x and y values. RectangleType represents

This project will create 2 classes: Point2D and RectangleType. Point2D represents a 2d-point with x and y values. RectangleType represents a rectangle with 2 points which represent opposite corners of a rectangle. (x1,y1) (x0,y0) Point 2D class RectangleType class RectangleType constructor calls the Point2D constructor for p0 and p1. getWidth returns the result of abs(y1-y0). getlength returns the result of abs (x1x0). In the main Ask the user for the values for 0,y0,1, and y1. Use those values to create a RectangleType object. Display the width, length, perimeter, and area of the RectangleType object

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!