Example I have a program:
class TestStatic
{
private:<br>
static int staticvariable;
public:<br>
TestStatic() {
this->staticvariable = 0;
cout << this->staticvariable;
}
~TestStatic() {}
};
int main() {
TestStatic object;
return 0;
}
why this pointer can't access staticvariable . I don't understand why.