Question Design Class Named Mypoints Represent Two Points X Y Coordinates Class Contains D Q37183374

using java

Question: Design a class named MyPoints to represent two points with x- and y-coordinates. The class contains The double dataQuestion: Design a class named MyPoints to represent two points with x- and y-coordinates. The class contains The double data fields x1 anlt y1 that represent the coordinates of the first point The double data fields x2 and y2 that represent the coordinates of the second point. A no-arg constructor that creates the points (0,0,1,1) equivalent to (x1,y1,x2,y2) A constructo that constructs a point with specified coordinates(x1,y1,x2.y2) A method to set x1, y1 A method to set

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.