// Filename: point.h
// Author: G. Safko  <greg.safko@gmail.com>
// Description: a point object
// Date Written: April 26, 2005

#ifndef POINT_H
#define POINT_H

#include <iostream>

using namespace std;

class point : public shape
{
private:
	int x,y;

public:
	point();
	point(int, int);

	// mutators
	void setX(int);
	void setY(int);
	
	// accessors
	int getX(void);
	int getY(void);
	virtual void printName() const;
};

#endif

point::point() : shape() // default constructor
{
	x = y = 0;

}

point::point(int x, int y) : shape()
{
	this->x = x;
	this->y = y;
}

void point::setX(int x1)
{
	x = x1;
}

void point::setY(int y1)
{
	y = y1;
}

int point::getX()
{
	return x;	
}

int point::getY()
{
	return y;	
}

void point::printName() const
{
	cout << "point\n";
}