// point.cc
// P. Conrad for CISC181 Fall 2005

#include "point.h"
#include <iostream>

using std::cout;
using std::cerr;
using std::endl;

Point::Point(double newX, double newY) // constructor
{
  setX(newX);
  setY(newY);
}

void Point::setX(double newX)
{
  x = newX;
}


void Point::setY(double newY)
{
  y = newY;
}

void Point::print() const
{
  cout << "(" << x << "," << y << ")";


  //  cout << "(" << this->x << "," << this->y << ")";
}

