// File: FloatArray.h // // Deriving the IntArray Class from GenArray #ifndef FLOATARRAY_H #define FLOATARRAY_H #include "Array.h" class FloatArray : public Array{ // public derivation of Array public: FloatArray (unsigned int n=0) ; // constructor w/ opt parameter ~FloatArray() ; // virtual destructor // Copy constructor and assignement not inherited! // FloatArray(const FloatArray& B) ; // copy constructor FloatArray& operator=(const FloatArray &rhs) ; void print() ; float& 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) ; float *A ; } ; #endif