title: Getting error: expected unqualified-id before 'default'
body: <p>I am trying to write a basic program to show the use of default constructors. This is my code below;</p>
  
  <pre><code>class Fraction
  {
  private:
      int m_numerator;
      int m_denominator;
  
  public:
      Fraction() // default constructor
      {
           m_numerator = 0;
           m_denominator = 1;
      }
  
      int getNumerator() { return m_numerator; }
      int getDenominator() { return m_denominator; }
      double getValue() { return static_cast&lt;double&gt;(m_numerator) / m_denominator; }
  };
  
  #include &lt;iostream&gt;
  
  int main()
  {
      Fraction default; // Since no arguments, calls Fraction() default constructor
      std::cout &lt;&lt; default.getNumerator() &lt;&lt; "/" &lt;&lt; default.getDenominator() &lt;&lt; '\n';
  
      return 0;
  }
  </code></pre>
  
  <p>I am getting an error message in the main program saying, 'expected unqualified-id before 'default' I think I am missing something simple, but I can't spot it!</p>