error C2512: 'Box' : no appropriate default constructor available
<p>I'm still new to C++ and I can't seem to find the exact answer elsewhere. I am trying to initialize a Box object that requires 2 floats in the constructor. Box is derived from Game Object.</p>

<p>I tried Box *box = new Box(20,20);</p>

<pre><code>    class GameObject {
        public: 
            GameObject::GameObject(float Posx, float Posy) {
                posx = Posx;
                posy = Posy;
            };
        protected: //Positions
            float posx;
            float posy;

            virtual void setPosition(float x, float y) { posx = x; posy = y;};

        };


        class Box : GameObject { // Box is Derived from GameObject
        public:

            float sizex;
            float sizey;

            void setSize(float x, float y) {sizex = x; sizey = y;};

        };
</code></pre>
