Example 2: Writing and specifying font size.

(a)

class ColoredText
{
   // class methods...
   // other class members...
   std::string _text;        // The text
   int _red, _green, _blue;  // RGB colors
}

(b)

class ColoredText
{
   // class methods...
   // other class members...
   std::string _fontName;    // font name
   double _fontSize;         // font size
}