title: function definition does not declare parameters simple c++ programme
body: <p>This is my class <code>employeeException</code></p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  
  using namespace std;
  
  class employeeException
  {
      public:
      employeeException(string);
      void printmessage();
  
      private:
      string message;
  };
  
  int main()
  {  
    employeeException("Heelo");
  }
  
  employeeException::employeeException(string message)
  {
      this-&gt;message = message;
  }
  
  void employeeException:printmessage()
  {
      cout&lt;&lt;endl
          &lt;&lt;this-&gt;message
          &lt;&lt;endl;
  }
  </code></pre>
  
  <p>For some unknown reason , I get this error during compilation</p>
  
  <blockquote>
    <p>function definition does not declare parameters</p>
  </blockquote>
  
  <p>I can't figure out what is wrong with this simple program. Surely, I am missing something simple.</p>