public:
point(int xp=0,int yp=0)
{
x = xp;
y = yp;
}
void print() const
{
//x = 5;
cout << "x: " << x << " y: " << y << endl;
}
};
void main()
{
point pt;
pt.print();
}
public:
point(int xp=0,int yp=0)
{
x = xp;
y = yp;
}
void print() const
{
//x = 5;
cout << "x: " << x << " y: " << y << endl;
}
};
void main()
{
point pt;
pt.print();
}