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

1 Expert Approved Answer
Step: 1 Unlock

Solution include using namespace std define SIZE 10 class array public int arrSIZE ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!