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 virtual ~Foo(); 12 }; 13 ~Foo()14 Foo::~Foo() 15 { 16 } 17 18 extern Foo theFoo; 19 20 #endif /* _lib_static_init_h */ 21