class X { private: static X* obj; X(){}; public: static X* setObj(); static void removeObj(); }; X* X::obj = nullptr; X* X::setObj() { if ( ob