#include "x.h" // File x.cpp X& getX(){ static X x; return x; __________________________________________________________________________________________
//another implementation. //static X* px = new X(); //return *px; } #include "y.h" // File y.cpp Y y; Y::Y(){ //here x maybe not construct ____________
getX().goBowling(); }