This is what i understood from reading a book, i made this example, it is not working. I understood that declaring a static scope variable in a class makes that variable independent of the class.
//program example
#include <iostream>
using namespace std;
class Point{
public:
static int x;
};
int main()
{
Point::x=0;
++Point::x;
++Point::x;
++Point::x;
cout<<Point::x;
}