Reference no: EM132164460
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.