class show : public event { 
\fbox{show}
public: show(thermometer* th, displayer* d) : _th(th), -d(d) {} void operator()() { _d->put( _th->get() ); event::process(); } protected: thermometer* _th; displayer* _d; };

slide: The show class