Question: Develop a class to represent an array of integers. The member variables include: 1- An integer to represent the size of array. 2- an integer

Develop a class to represent an array of integers.

The member variables include:

1- An integer to represent the size of array.

2- an integer pointer to represent the address of the first element of the array.

The user is allowed to create an array at run-time using this class.

this class include a default constructor where the user will be asked to input the size of the array

Also include the following methods:

1- A method that adds the contents of array. Give it a proper name and specify the number and type or arguments (if you need any).

2- A method to print the elements of the array Give it a proper name and specify the number and type or arguments (if you need any).

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!