#include "point.h" void Point::print() const { cout << "Point: " << this->name << endl; cout << "x val: " << this->x_val << endl; cout << "y val: " << this->y << endl; cout << endl; } void Point::move_up (int unit){ this->y = this->y + unit; return; } int Point::get_x() const{ return this->x_val; } int Point::get_y() const{ return this->y; } string Point::get_name() const{ return this->name; } void Point::set_x(const int new_x){ this->x_val = new_x; } void Point::set_y(const int new_y){ this->y = new_y; } void Point::set_name(const string new_name){ this->name = new_name; }