Question: them using cosstructor. Print out these Points using Sy the values of the fields using the sette methods and print out the changed fields sing
them using cosstructor. Print out these Points using Sy the values of the fields using the sette methods and print out the changed fields sing the getter methods Call Vertical and quadrant methods and print out the resalts 2Add a toString method that returas the string representation of the point stem out pritnO Cha Add the following method to the above class 3 public boolean isVertical (Point other) returns true if the given Point lines up vertically with this Point, that is, if their x coordnates are the same public class Point Add the following accessor method to the class above private int x private int y publac int quadan Returns which quadrant of the x y plane the current Point object falls in Quadrant contauns all points whove x and y values are both postve Quadrant 2 contains all poists with negative x but positive y Quadrant 3 contains all poentswt negative x and y values Quadrant 4 contains all points with postve x but negativey If the point les durectly on the and or y ax return public Point (int initialx, int initialy) ( Snitialx, y " initialy Add the accessor eX and getY) and setX and ser) sethods to access change te x fields in the Wrte a client class that creates atleas oljects of this Poust class and initialuze
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
