#include "Foo.h" // class Foo : public Phoo { ... }; static int Foo::Bar = 6; static int Whig = 5; Foo::Foo() { static int count = 0; count++; this->baz = 4; } void Foo::foo(int arg) { int save_Whig = Whig; Whig = 3; this->my_Phoo_func(Whig, arg, "\n"); Whig = save_Whig; }