// File: widget2.h // // Declaration of Widget class. Version 2. #ifndef _widget_h #define _widget_h // Define a constant // const int DEFAULT_SIZE=10 ; class Widget { public: Widget(int size=DEFAULT_SIZE) ; // Constructor with default value ~Widget() ; // Destructor! void display() ; // tell me about this widget static void report() ; // report about widget class private: static int count ; // keep track of number of widgets static int sequence ; // keep track of serial numbers int size ; int serial ; } ; #endif