Question: OOP2/ java In the Point class, if we added a method called makeOrigin whose function is to change a point object coordinates into the origin
OOP2/ java

In the Point class, if we added a method called makeOrigin whose function is to change a point object coordinates into the origin point's (i.e., (0,0)), which code of the following could be a correct implementation of the makeOrigin method? X=0;this.y=0); setX(O): setY(O): x=0; y=x. x=0: sety getX(); All of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
