title: Static class object
body: <p>Why are static class objects allowed in C++? what is their use?</p>
  
  <pre><code>#include&lt;iostream&gt;
  
  using namespace std;
  
  class Test {
    static Test self;  // works fine
  
    /* other stuff in class*/
  
  };
  
  int main()
  {
    Test t;
    getchar();
     return 0;
  }
  </code></pre>