Please Explain, Thanks. public class Point f private int x; private int y; publi
ID: 3747230 • Letter: P
Question
Please Explain, Thanks. public class Point f private int x; private int y; public void setx(int x) this.x public void sety (int y) this.y-y public void setXY(int x, int y) Yeyi public boolean IsEqual (Point p) return ((p.x x) && (p.y .. y)); public void DisplayPoint) System.out.printin(""x y public void movePoint(int deltax, int deltay) // xis increased by deltax and y is increased by deltay public void Setlocation(Point P) (//make point to have the specified location P. public static void main(Stringt] args) ( // TODO Auto-generated method stub Point P1 new Point); Point P2 new Point); P1.setx(5); P1.sety (6); P2.setx(5); P2.sety (6): System.out.println(P1.IsEqual (P2)); P2.setxy (3,4); System.out.printin(P1.IsEqual(P2));Explanation / Answer
c. x=5 and y=6
Hence, the values 5 and 6 are been displayed at the end of the main method.