Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Point Class a definition of a class named Point that might be used to store and manipulate the location of a point on the plane. The point is stored...

Point Class

a definition of a class named Point that might be used to store and manipulate the location of a point on the plane. The point is stored as two coordinates: x and y. You will need to declare and implement the following methods: 1. Two constructors: a. no-argument constructor that sets the point coordinates to (0,0), and b. a constructor that takes x and y coordinate of the point and sets member variables. 2. Method set that sets the private data after an object of this class is created. 3. A method to move the point by an amount along the vertical and horizontal directions specified by the first and second arguments: move(double dx, double dy) 4. The method to rotate the point by 90 degrees clockwise around the origin. Hint: when point is getting rotated 90 clockwise around the origin the following changes happen to its coordinates:  xrotated = y;   yrotated = -x . 5. two accessor methods to retrieve the coordinates of the point Call your file Point.java. 

a class containing main() with the following features: 

 Please do not use user input. Instead call ALL the methods of the class with the data you choose to make sure the methods work properly. In the comments explain why you decided to use these particular test cases.  Call the class containing main() PointDemo.java.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question