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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!