title: error: no matching function for call to
body: <p>Heres my error...</p>
  
  <p>"In constructor 'NumGame::NumGame(int&amp;)':
  error: no matching function for call to 'Category::Category()'"</p>
  
  <p>Ive looked at a few similar questions here but cant seem to find an answer. I have a base class Category and NumGame is inherited from it but wont compile.</p>
  
  <pre><code>class Category {
  
  public:
      void virtual selection(int&amp;);
      Category(int&amp;);
      virtual ~Category(){};
  private:
      int myRandNum;
  };
  
  Category::Category(int&amp; a){
      myRandNum = a;
  }
  
  void Category::selection(int&amp; a){
      cout &lt;&lt; "I am NumGame version number... " &lt;&lt; a &lt;&lt; endl;
      cout &lt;&lt; "Now Im playing... " &lt;&lt; myRandNum &lt;&lt; endl;
  }
  
  class NumGame : public Category {
  
  public:
      void selection(int&amp;);
      NumGame(int&amp;);
      ~NumGame(){};
  private:
      int myRandNum;
  };
  
  NumGame::NumGame(int&amp; b){
      myRandNum = b;
  }
  
  void NumGame::selection(int&amp; b) {
  
  }
  </code></pre>