#ifndef _MYARRAY_H_ #define _MYARRAY_H_ class myArray { public: int *data ; // should be private unsigned int length() ; myArray() ; // default constructor myArray(int n) ; // constructor ~myArray() ; // destructor void append(int a) ; void print() ; myArray slice(int start, int end) ; private: unsigned int len ; // # items unsigned int cap ; // # items allocated } ; #endif