Question: Exercise 1 [5 points] Create the following classes shown in the UML diagram. Then, create PointTest.java class with main method to test all functionality of

 Exercise 1 [5 points] Create the following classes shown in the

Exercise 1 [5 points] Create the following classes shown in the UML diagram. Then, create PointTest.java class with main method to test all functionality of these classes Point2D x : float 0 . 0f = y:float -0.0f +Point2D(x: float,y: float) +Point2D) +getX() :float +setX(x: float) void +getY():float +setY(y:float):void +setXY(x:float,y:float):voidray of (x,y) +getXY() :float[2]- +toString(: Strine extends Point3D -z: float0.0f +Point3D(x:float,y:float,z:float) +Point3D() +getz() :float +setZ(z:flaot) void +setXYZ(x:float,y:flaot,z:float):voidArray of (x,y,z) +getXYZ(:float[3]- +toString) :String

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!