/* File: colorcube.h Declare a class ColorCube that is derived from Cube */ #ifndef _colorcube_h #define _colorcube_h #include "cube.h" enum color_tag {red, white, blue} ; typedef enum color_tag color ; class ColorCube : public Cube { /* public derivation of class Cube */ public: ColorCube() ; /* default constructor */ ColorCube(float, color) ; /* another constructor */ void identify() ; /* identify redefined again */ private: color ccolor ; /* new member */ } ; #endif