#include #include "ch2001_shape.h" using namespace std; shape::shape(int newx, int newy) { moveto(newx, newy); } int shape::getx() { return x_; } int shape::gety() { return y_; } void shape::setx(int newx) { x_ = newx; } void shape::sety(int newy) { y_ = newy; } void shape::moveto(int newx, int newy) { setx(newx); sety(newy); } void shape::print() { cout << " Shape " << endl; cout << " x = " << x_ << endl; cout << " y = " << y_ << endl; }