#ifndef SAFEARRAY6_H_ #define SAFEARRAY6_H_ class SafeArray { public: SafeArray(); SafeArray(int len); SafeArray(const SafeArray& other); // copy constructor ~SafeArray(); SafeArray& operator =(const SafeArray& rhs); int& operator [](int i) const; int get_length() const; private: int *elements; int length; }; #endif /* SAFEARRAY6_H_ */