/* Interface/specification of a simple Counter Purpose: simplest example of an ADT Author: RJBotting Started: Tue Jun 19 10:11:33 PDT 2007 */ #ifndef COUNTDOWN_H #define COUNTDOWN_H class CountDown { //Counts down from a given start until zero public: //Application Programmer Interface CountDown(int start); // it is set to start void next(); // subtracts one from it bool end()const; // returns true if and only if it <= 0 private: int it; };//end class CountDown #endif