Question: Requirements. Write a header file name as LabExercise 3 . h , include the class StaticArray declaration first, then followed by all member function implementations.
Requirements. Write a header file name as LabExerciseh include the class StaticArray 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 template class for an array of values of unspecified type, all initialized to the default value. 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 StaticArray CAP::capacity return the data structure's capacity.
StaticArray class public interface:
template
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
