// File widget.h // // Demos static data members and static methods // #ifndef WIDGET_H #define WIDGET_H #include using namespace std ; class Widget { public: Widget() ; // constructor void Print() ; static void SetSlogan(string str) ; void SetSlogan(string str) { slogan = str ; } private: unsigned int serial ; string slogan ; // Static Data Members static unsigned int g_serial ; static string g_slogan ; } ; #endif