Example of final
class coloredBox : public box { public: // define the range of color values static const int Red = 1; static const int Yellow = 2; static const int Blue = 3; coloredBox (int v, int c)
: box(v), ourColor(c) { } private: int ourColor;
};
Previous slide
Next slide
Back to first slide
View graphic version