Professional Documents
Culture Documents
Create A Class Named Array That Represents A Safe Array
Create A Class Named Array That Represents A Safe Array
Lab 08
Topic Covered: Array Operator [ ] Overloading
15. Make int Resize( int newSize) function to resize the array.
For this you have to delete the previous array and then make the
new array dynamically.
16. Make void Show() function to show numbers stored in the dynamic
array on screen.
1
17. Make operator overloading of == operator to see if the two
arrays are same or not.
18. Make operator overloading of += operator to concatenate two
arrays objects. Answer should be copied to the calling object.
19. Hint: You have to resize the array to accommodate two arrays
20. Make operator overloading of [] operator to read or write any
position of the array.
21. Also write the code to check out of bound errors
22. Make two Array Objects in main() function and call the above
functions and operators.