// depart.h: the Departure class, representing departure events. class Departure : public Event { private: Pump *pump; public: // Constructor. // The call "Event (time) is like Java's "super (time)". Departure (double time) : Event (time) { } // makeItHappen: departure event routine. void makeItHappen (); // setPump: assign a pump to this arrival. // -- that is, to the car the start of service of which schedules // this departure. void setPump (Pump *pump) { this->pump = pump; } };