class object { public: void check() { std::cout<<\"I am doing ok...\"<
You can do the same with nil pointers, just as long as you never access the state of the class instance:
class object { public: void check() { std::cout<<"I am doing ok..."<check(); }