Question: include the class Array declaration first, then followed by all member function implementations. Write the public interface exactly as specified below - - do not
include the class Array declaration first, then followed by all member function implementations. Write the public interface exactly as specified below do not add to or change the public interface as specified.
Write the class for an array of int values, all initialized to the default int value, zero. That means you need a main constructor.
Include a square bracket getter and a setter, both with index rangechecking, returning whatever value you wish, if out of range.
Include a getter named Array::capacity to return the data structure's capacity.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
