title: no matching function for call to ..constructor
body: <p>I am trying to compile a code that involves inheritance.</p>
  
  <pre><code>#include "MapEntityClass.h"
  
  class RectangularEntityClass:public MapEntityClass
  {
    public:
      void drawOnMap(MapClass *mapObj) const;
  
    protected:
  };
  </code></pre>
  
  <p>The parent class is MapEntityClass, which does not have a default constructor, but has a value constructor. When I compile, I get the following error:</p>
  
  <pre><code>RectangularEntityClass.h: In constructor ‘RectangularEntityClass::RectangularEntityClass()’:
  RectangularEntityClass.h:12:7: error: no matching function for call to ‘MapEntityClass::MapEntityClass()’
     class RectangularEntityClass:public MapEntityClass
     ^
  RectangularEntityClass.h:12:7: note: candidates are:
  In file included from main.cpp:1:0:
  MapEntityClass.h:32:5: note: MapEntityClass::MapEntityClass(const PixelLocationClass&amp;, const ColorClass&amp;)
       MapEntityClass(
       ^
  MapEntityClass.h:32:5: note:   candidate expects 2 arguments, 0 provided
  </code></pre>
  
  <p>Any idea what is wrong?</p>