I need help please I do not know so much how to register my copy constructor to perform a deep copy.
My question is whether my copy constructor is correctly registered and if not then how can I write it down Thank you very much.
my ArrayList.h:
template<class T>
class ArrayList{
private:
T* storage;// T pointer array
int size;// size of array
public:
ArrayList();//constructor
ArrayList(const &ArrayList);//copy constructor
};
template<class T>//constructor
ArrayList<T>::ArrayList(){
size = 0;// size of array in start
}//end ArrayList
template<class T>//copy constructor
ArrayList<T>::ArrayList(const &ArrayList){
T* _storage = T* storage;
int _size = size;
}
template<class T>//destructor
ArrayList<T>::~ArrayList(){
delete[]storage;
}//end ~ArrayList
thank's