title: Definition and access identifier of class in c++
body: <p>I am a new c++ beginner.I have added private access identifier.Why does it throw this error?Thanks</p>
  
  <pre><code>class test
  {
      private:
      test()
      {
      };
      ~test()
      {
  
      };
      public: void call()
      {
          cout&lt;&lt;"test"&lt;&lt;endl;
      } ;
  };
  </code></pre>
  
  <p>error：</p>
  
  <pre><code>error: 'test::test()' is private|
  </code></pre>