title: How many constructors does the class have?
body: <p>I'm preparing for an upcoming C++ exam and came across this question about classes and constructors:</p>
  
  <blockquote>
    <h3>How many constructors does the class Fraction have?"</h3>
  
  <pre><code>class Fraction {
  //...
  public:
     Fraction(int numerator = 0, int denominator = 1);
  //...
  };
  </code></pre>
  </blockquote>
  
  <p>I thought it's only one, but they suggested there are three:</p>
  
  <pre><code>Fraction();
  Fraction(n);
  Fraction(n, d);
  </code></pre>
  
  <p>Or in other words:<br>
  <strong>Is a function with default values an overloaded function?</strong></p>