I have some c++ code that I am analyzing and I came across something I don't know what it means.
I have a class like this
class A
{
public:
int I;
void function();
}
void A::function()
{
cout << A::I;
}
Neither the function nor I is declared static in the class.
I don't understand the scope of I in the function. Is it the member of the instance that "function" is called from? Or is a static member? I've never seen the variable accessed in that manner from inside the class its a member from.
There is nothing to try, is a C++ specification question