An abstract base class
class InSeq {
public:
virtual bool avail() = 0;
virtual int next() = 0;
virtual ~InSeq() { }
};
We assume that each call to next will be preceded by a call to avail
Previous slide
Next slide
Back to first slide
View graphic version