#include <stdio.h>
#include <math.h>

class Point
{
public:
    Point(float x, float y)
    {
        _x = x;
        _y = y;
    }

    float x() const { return _x; }
    float y() const { return _y; }

    void move(float x, float y)
    {
        _x += x;
        _y += y;
    }

    float abs() const
    {
        return sqrtf(_x*_x + _y*_y);
    }

private:
    float _x;
    float _y;
};

int main(void)
{
    Point p(3,4);
    printf("point (%f,%f)\n", p.x(), p.y());
    printf("abs %f\n", p.abs());
    return 0;
}
