title: error "extra qualification ‘student::’ on member ‘student’ [-fpermissive] "
body: <p>I am getting an error <code>extra qualification ‘student::’ on member ‘student’ [-fpermissive]</code>.<br>
  And also why <code>name::name</code> such syntax is used in constructor?</p>
  
  <pre><code>#include&lt;iostream&gt;
  #include&lt;string.h&gt;
  using namespace std;
  class student
  {
   private:
       int id;
       char name[30];
   public:
  /*   void read()
       {
          cout&lt;&lt;"enter id"&lt;&lt;endl;
          cin&gt;&gt;id;
          cout&lt;&lt;"enter name"&lt;&lt;endl;
          cin&gt;&gt;name;
       }*/
       void show()
       {
          cout&lt;&lt;id&lt;&lt;name&lt;&lt;endl;
       }
       student::student()
       {
          id=0;
          strcpy(name,"undefine");
       }
  };
  main()
  {
   student s1;
  // s1.read();
   cout&lt;&lt;"showing data of s1"&lt;&lt;endl;
   s1.show();
  // s2.read();
    //cout&lt;&lt;"showing data of s2"&lt;&lt;endl;
   //s2.show();
  }
  </code></pre>