Question: c++ You will implement a template class with the followingmembers: An array of our generic type. The size of this array should bedetermined by an
c++
You will implement a template class with the followingmembers:
- An array of our generic type. The size of this array should bedetermined by an integer argument to the constructor.
- An integer for storing the array size.
- A constructor capable of accepting one integer argument. Theconstructor should initialize the array and set the arraysize.
- A method, find Max, that returns the maximum value in thearray.
- A method, find Min, that returns the minimum value in thearray.
Additionally you will need to create a short driver program thatdemonstrates your template class working with a few differentnumeric data types.
Step by Step Solution
3.48 Rating (145 Votes )
There are 3 Steps involved in it
Answer include using namespace std template class Array private T arr ... View full answer
Get step-by-step solutions from verified subject matter experts
