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: setxo), 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
