title: Why is there no call to the constructor?
body: <p>This code doesn't behave how I expect it to.</p>
  
  <pre><code>#include&lt;iostream&gt;
  using namespace std;
  
  class Class
  {
      Class()
      {
          cout&lt;&lt;"default constructor called";
      }
  
      ~Class()
      {
          cout&lt;&lt;"destrutor called";
      }
  };
  
  int main()
  {    
      Class object();
  }
  </code></pre>
  
  <p>I expected the output 'default constructor called', but I did not see anything as the output. What is the problem?</p>