Question: C++ Language - Classes Exercise 1: Implement the Array class that is defined below and test it in the main program. The main program must

C++ Language - Classes  C++ Language - Classes Exercise 1: Implement the Array class that
is defined below and test it in the main program. The main

Exercise 1: Implement the Array class that is defined below and test it in the main program. The main program must test all the functions that are defined in the class. ifndef array h #define array h class Array Class declaration public: Array (int 5) Initialize the array with 0 values Array (const Array & copy constructor -Array //destructor bool set Value (int index, int value) assign a value to an //array element bool getValue (int index, int &value) get an array element Array & increment cascade function to increment each array element by 1 int getsize return the size of the array. void print const print each element of the array Array& Add (const Array ar) casade function to add all elements of arr to all elements of the this array (element by element) and return a reference to the resulting array bool Equal (const Array *ar) const; return true if all elements in both arrays are equal, false otherwise. Array& removeAt (int

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!