class Object { protected: int x; int y; int width; int height; public : virtual int ID(); int getWidth(); int getHeight(); int getX(); int getY(); void setWidth(int); void setHeight(int); void setX(int); void setY(int); }; typedef Object *lpObject; class Objects { private: lpObject obj[100]; int position; int max; public: Objects(); void add(lpObject obj); lpObject get(int num); };