We now declare ArraySeq as a generalization...
template<class T>
class ArraySeq: public InSeq<T> {
public:
ArraySeq(const T*, int);
virtual bool avail();
virtual T next();
private:
int n;
const T* p;
};
Previous slide
Next slide
Back to first slide
View graphic version