// each enumerator like RED or GREEN is a named constant;
// its value can't be changed except by modifying the source code and re-compiling
enum colour { RED=16, GREEN=32, BLUE=64, WHITE=RED+GREEN+BLUE, GREY=WHITE/2, BLACK=0 };
int main()
{
colour clr_sky = BLUE ; // clr_sky is a non-const variable of type colour
// the value of the object can be changed
bool rainy = true ;
if(rainy) clr_sky = GREY ; // change the value of clr_sky
}