title: Method could not be resolved
body: <p>In my header file:</p>
  
  <pre><code>Esame();
  Esame(string);
  Esame(string, Voto);
  </code></pre>
  
  <p>This is a c++ tester class:</p>
  
  <pre><code>//OK
  Esame esame("Algoritmi e strutture dati", 30);
  esame.stampaEsame();
  
  //OK
  Esame esame2("Metodi Avanzati di Programmazione");
  esame2.setVoto(26);
  esame2.stampaEsame();
  
  //ERROR 
  Esame esame3();
  esame3.setVoto(26); //Method could not be resolved
  esame3.stampaEsame(); //Method could not be resolved
  </code></pre>
  
  <p>The code doesn't compile at all. Why it doesn't find the method if the object has been created with the same class in the code above?</p>