Question: USING C++: In this problem, you will be implementing an Array class, with some additional features, such as dynamic memory allocation and definingg the copy

USING C++:

In this problem, you will be implementing an Array class, with some additional features, such as dynamic memory allocation and definingg the copy constructor and the assignment operator. Please refer to Stephen Prata, "C++ Primer" Chapter 12 for details (a) The class must have the following data members: -An int for the array size. -A pointer to an int for the array elements. (b) Memory management should be done dynamically using the appropriate new operator in the constructor and the delete operator in the destructor. (c) The class must also de ne the following: -A constructor -A copy constructor -Assignment operator -Addition operator -A method to sort the array -A method to display the array elements -Test the code for all of the above functionality.

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!