Question: Q. Write a class array that contains an array of integers as data member. The class contains the following member functions:(Marks 8) A constructor that
Q. Write a class array that contains an array of integers as data member. The class contains the following member functions:(Marks 8)
A constructor that initializes the array element to -20.
Input function to input the values in array.
Show function to display the values of the array.
Overload == operator to compare the values of 2 objects. The overloaded function
Step by Step Solution
3.43 Rating (159 Votes )
There are 3 Steps involved in it
Solution include using namespace std define SIZE 10 class array public int arrSIZE ... View full answer
Get step-by-step solutions from verified subject matter experts
