#include<iostream.h>
class Point
{
public:
void InitPoint(float PointA_x=0,float PointA_y=0)
{
P1_x=PointA_x;
P1_y=PointA_y;
}
void Move(float New_x,float New_y)
{
P1_x+=New_x;
P1_y+=New_y;
}
float GetPointx()
{
return P1_x;
}
float GetPointy()
{
return P1_y;
}
private:
float P1_x,P1_y;
};
void main()
{
float x,y,a,b,c,d;
cout<<"Insert PointA_x,POintA_y"<<endl;
cin>>x;
cin>>y;
InitPoint(x,y);
cout<<"Insert New_x,New_y"<<endl;
cin>>a;
cin>>b;
Move(a,b);
c=GetPointx();
d=GetPointy();
cout<<"PointA_x="<<c<<endl;
cout<<"PointA_y="<<d<<endl;
}