/*---- implementation file for class: ColorPoint a ColorPoint represents a point in a 2-dimensional coordinate space that has a color by: Sharon Tuttle last modified: 2022-11-08 [note: NOT YET COMPLETE] ----*/ #include <cstdlib> #include <iostream> #include <string> #include <cmath> #include "Point.h" #include "ColorPoint.h" using namespace std; // constructors // for the 0-argument constructor, you get // (0, 0, "") // (note the call to base class Point's constructor // in the method headers) ColorPoint::ColorPoint(): Point() { // need to initialize data fields // particular to ColorPoint color = ""; } ColorPoint::ColorPoint(double init_x, double init_y, string init_color): Point(init_x, init_y) { color = init_color; } // to be FINISHED IN CLASS in W12-2