class Foo { int x; int y; public: void setX( int X ) { x = X; } void setY( int Y ); void print() const; }; void Foo::setY( int Y ) { y = Y; }