title: C++ overloaded member function error
body: <p>hi i was making a program with 3 classes and when i was using a member initialization list i got an error saying "no instance of overloaded function "people::people" matches the specified type:</p>
  
  <p>MAIN.cpp</p>
  
  <pre><code>    #include &lt;iostream&gt;
      #include "conio.h"
      #include &lt;string&gt;
      #include "birthday.h"
      #include "people.h"
      using namespace std;
  
      void main(){
          birthday birthObj (30, 06, 1987);
  
          people me("The King",birthObj);
          _getch();
      }
  </code></pre>
  
  <p>BIRTHDAY.h</p>
  
  <pre><code>    #pragma once
      class birthday
      {
      public:
  birthday(int d, int m, int y);
          void printdate();
      private:
          int month;
          int day;
          int year;
      };
  </code></pre>
  
  <p>BIRTHDAY.cpp</p>
  
  <pre><code>    #include "birthday.h"
      #include &lt;iostream&gt;
      #include "conio.h"
      #include &lt;string&gt;
  
      using namespace std;
  
      birthday::birthday(int d, int m, int y)
      {
          month = m;
          day = d;
          year = y;
      }
      void birthday::printdate()
      {
          cout &lt;&lt; day &lt;&lt; "/" &lt;&lt; month &lt;&lt; "/" &lt;&lt; year;
      }
  </code></pre>
  
  <p>PEOPLE.h</p>
  
  <pre><code>    #pragma once
      #include &lt;iostream&gt;
      #include "conio.h"
      #include &lt;string&gt;
      #include "birthday.h"
      using namespace std;
  
      class people
      {
      public:
          people(string x, birthday bo);
          void printInfo();
      private:
          string name;
          birthday dateOfBirth;
      };
  </code></pre>
  
  <p>PEOPLE.cpp</p>
  
  <pre><code>    #include "people.h"
      #include &lt;iostream&gt;
      #include "conio.h"
      #include &lt;string&gt;
      #include "birthday.h"
      using namespace std;
  
      people::people()
      : name(x), dateOfBirth(bo)
      {
      }
  
      void people::printInfo()
      {
          cout &lt;&lt; name &lt;&lt; " was born on ";
          dateOfBirth.printdate(); 
      }
  </code></pre>