// CS1101 (AY2007/8 Semester 1)
// Lab #2 Exercise 2
// MyPoint.java (incomplete version)
// Written by: Aaron Tan
//
// This class provides various routines to
// manipulate points in the coordinate plane (x, y).
// This is an incomplete version!
// Please remove/amend the comments appropriately!

public class MyPoint {

//----------------------------------
// Data Members
//----------------------------------
  
  /**
   * The x-coordinate of a point
   */
  private double xCoord;
   
  /**
   * The y-coordinate of a point
   */
  private double yCoord;

//----------------------------------
//    Constructors
//----------------------------------
   /**
    * Default constructor
    * To assign 0.0 to both coordinates
    */
   public MyPoint( ) {
       // fill in your code here 
   }

   /**
    * Alternative constructor
    */
   public MyPoint(double xInit, double yInit) {
       // fill in your code here
   }
   
//-------------------------------------------------
//      Public Methods:
//          void setX ( double );
//          void setY ( double );
//          double getX ( );
//          double getY ( );
//------------------------------------------------
   
   /**
    * Changes the value of the x-coordinate of a point
    * @param x the new value for the x-coordinate of this point
    */
   // fill in your code for setX here

   /**
    * Changes the value of the y-coordinate of a point
    * @param y the new value for the y-coordinate of this point
    */
   // fill in your code for setY here

   /**
    * Returns the x-coordinate of a point
    * @return the x-coordinate of this point
    */
   // fill in your code for getX here

   /**
    * Returns the y-coordinate of a point
    * @return the y-coordinate of this point
    */
   // fill in your code for getY here

}

