#include <iostream>  // allows use of cin and cout
#include "ColorPoint.h";
using namespace std;

// Create a point object -- default is (0,0) if no params.
ColorPoint::ColorPoint(int xVal, int yVal, string colorVal)
	:Point(xVal,yVal), color(colorVal) {
}

// default constructor works fine
ColorPoint::~ColorPoint(){}

// return the color of the point
string ColorPoint::getColor() const {
	return color;
}

// change color as part of moving
void ColorPoint::translate(int dx, int dy) {
	Point::translate(dx,dy);
	color = "blue";
}

// Convert a color point to a string.
string ColorPoint::toString() const {
	return Point::toString() + "  with color: " + color;
}