1. Engineering
  2. Computer Science
  3. c program create an array class addressing following functionality ...

Question: c program create an array class addressing following functionality ...

Question details

C++ Program.

Create an “Array” class addressing following functionality
• Default Constructor for the class
o Constructor with array size
o Copy Constructor with size
• Destructor for the class
• Function to access the size
• Display the content of the array
• Function to Add an element at the beginning
• Function to Add an element at the end
• Function to Remove an element at the beginning
• Function to Remove an element at the end
• Function to Inverse the order of the elements in the array
• Function to Return the sum of the elements in the array
• Function to Return an array that contains the odd numbers only
• Function to Display the content of the array in a file through fstream
• Overload the + operator so you can concatenate 2 arrays of size n and m into a new array of size n+m

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution