Reference solution
One correct implementation. Alternative approaches that satisfy the constraints are equally valid — the reviewer judges behaviour, not style.
#include <iostream>
using namespace std;
class Point {
public:
Point() : x(0), y(0) {}
int x;
int y;
};
int main() {
Point p;
cout << p.x << "," << p.y << '\n';
return 0;
}