#include "Point.hh"

// Point(): initializes the point to (0, 0).

Point::Point()
{
    x_coord = 0;
    y_coord = 0;
}

// Point(int x, int y): initializes the point to (x, y).

Point::Point(int x, int y)
{
    x_coord = x;
    y_coord = y;
}

// Mutators:

void Point::setX(int val)
{
    x_coord = val;
}

void Point::setY(int val)
{
    y_coord = val;
}

// Accessors:

int Point::getX() { return x_coord; }
int Point::getY() { return y_coord; }

// Destructor: does nothing!

Point::~Point()
{
    // nothing
}





