I came to see one class say
CMyClass. There inside
CMyClass.cpp is a global variable defined.
And probably also used somewhere else. I was curious what is the point of having this global variable inside class when one could also declare say a static member variable inside it? (what's the difference? they both enjoy class scope right? (by class scope I mean what is valid with static variables, e.g., one instance through all class objects) ).