Question: Write the following code in C++ A constructor that has an const unsigned int parameter. This constructor needs to dynamically allocate an array of the
Write the following code in C++
A constructor that has an const unsigned int parameter. This constructor needs to dynamically allocate an array of the size passed into the parameter. Use the new keyword to allocate this array, and make sure you save the result in a pointer. It should set the data member currentSize to zero. It should also set the capacity data member to the value of the argument passed in.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
