#ifndef _MYARRAY_H_ #define _MYARRAY_H_ #include class myArray { public: int *data ; // should be private unsigned int length() const ; myArray() ; // default constructor myArray(int n) ; // constructor myArray(const myArray &B) ; // copy constructor myArray& operator= (const myArray& B) ; // overloaded assignment ~myArray() ; // destructor int& operator[] (unsigned int i) ; // overloaded assignment myArray operator+ (const myArray& rhs) const ; void append(int a) ; myArray slice(int start, int end) ; void print(ostream& out = cout) const ; private: unsigned int len ; // # items unsigned int cap ; // # items allocated } ; ostream& operator<<(ostream& out, const myArray& A) ; #endif