/* * point2d.cpp * * Created on: 07.03.2013 * Author: trifon */ #include using namespace std; #include "point2d.h" Point2D::Point2D() { x = y = 0; } Point2D::Point2D(double x, double y) { this->x = x; this->y = y; } double Point2D::getX() const { return x; } double Point2D::getY() const { return y; } void Point2D::print() const { cout << '(' << x; cout << ',' << y; cout << ')'; }