// static.h // demonstrates static data and functions #include class widget { public: widget(); // initialize one widget int get_number(); // get a widget's number static int get_total(); // get total widgets private: int widget_number; // a widget's serial number static int total_widgets; // all widgets made so far // NOTE: declaration only };