Where is the correct place to initialize a class data member? I have the class declaration in a header file like this:
Foo.h:
class Foo { private: in
A class variable must be marked as "static". If your variable is an instance variable and not a class variable you must initialize it in the constructor or other method.