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

OOP2/ java In the Point class, if we added a method called

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

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!