/*Consider the following C++ class
{
intx,y;
public:
void setpoint(int, int);
void showpoint();
};
// To set the values ofx and y co-ordinate .
// To display co-ordinate of a
point P in format (x, y).
*/
class point
{
int X, Y;
//defualt constructor
point()
{
X=0;
Y=0;
}
void setPoint(int a, int b)
{
X = a;
Y = b;
}
/*
int getX(void)
{
return
X;
}
int getY(void)
{
return
Y;
}*/
void showPoint()
{
cout<<"a"<<X;
cout<<"b"<<Y;
}
};
int main ()
{
point p1;
P1.showPoint();
cout<<"p1:
"<<p1.getX () <<" , "<<p1.getY ()
<<endl;*/
}