#include #include using namespace std; class Widget { public: Widget(string objectID = "defaultID", string value = "defaultValue"); Widget(const Widget &source); string getID() const; string getValue() const; void setValue(string s); Widget& operator=(const Widget &source); void insert(ostream &sout) const; void extract(istream &sin); protected: void setID(string s); private: string thisObjectID; string thisValue; }; ostream& operator<<(ostream &sout, const Widget &object); istream& operator>>(istream &sin, Widget &object);