1 #ifndef _lib_static_init_h 2 #define _lib_static_init_h 3 4 class Foo { 5 private: 6 int value; 7 static int counter; 8 public: 9 virtual int getValue(); 10 Foo(); 11 }; 12 13 extern Foo theFoo; 14 15 #endif /* _lib_static_init_h */ 16