// File: IntArray.h // // Deriving the IntArray Class from GenArray #ifndef INTARRAY_H #define INTARRAY_H #include "Array.h" class IntArray : public Array{ // public derivation of Array public: IntArray (unsigned int n=0) ; // constructor w/ opt parameter ~IntArray() ; // virtual destructor // Copy constructor and assignement not inherited! // IntArray(const IntArray& B) ; // copy constructor IntArray& operator=(const IntArray &rhs) ; virtual void print() ; int& operator[] (unsigned int i) ; // not override protected : virtual void swap(unsigned int i, unsigned int j) ; virtual int cmp(unsigned int i, unsigned int j) ; int *A ; } ; #endif