What will happen? Here's a code that i tried, it works but i don't really get what's actually happening or how many instances of the static test t are getting created.
#include<iostream>
using namespace std;
class Test {
public:
static Test t;
void hello()
{
cout<<"this line shall be printed";
}
};
Test Test::t;
int main()
{
Test a;
a.t.t.t.hello();
cin.get();
return 0;
}