#include #include "ArrayT.h" ArrayT::ArrayT() { size = 0; data = new int[10]; capacity = 10; return; } ArrayT::ArrayT(const ArrayT & rhs){ size_t i; // copy the size size = rhs.size; // copy the capacity capacity = rhs.capacity; // copy the data // allocate new memory data = new int[capacity]; // Copy the data from old to new. for(i=0;i 0) { size--; } return; }