title: Point Class Coordinates
body: <p>I have an assignment explaining like this:</p>
  <blockquote>
  <p>Write 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:</p>
  <ol>
  <li>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.</li>
  <li>Method set that sets the private data after an object of this class is created.</li>
  <li>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)</li>
  <li>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 .</li>
  <li>two accessor methods to retrieve the coordinates of the point.</li>
  </ol>
  </blockquote>
  <p>It should be 2 different call. these items on second one (not main class)
  I will call this on main class. (I do that).</p>
  <p>This is my code but I dont understand what I should do next.</p>
  <pre><code>private double x;    
  private double y;    
  
  
  public Point(double initialX, double initialY) {
      x = initialX;
      y = initialY;
  }
  
  
  public Point() {
      x = 0;
      y = 0;
  }
  
  
  public double getX() {
      return x;
  }
  
  
  public double getY() {
      return y;
  }
  
  
  public void move(double dx, double dy) {
      x += dx;
      y += dy;   
  }
  </code></pre>