Copy constructor help

Howdy. I've got a general question about copy constructors: When you use a copy constructor to copy the data by value, how do you use functions that were made to access the original data?

For example: I have alist class that makes an array with 5 entries: 1, 3, 6, 8, 9.
I use the copy constructor for the class to temporarily store that data into another array. How can I use my display function (for loop with a cout for each entry) for the second array, seeing as the display function is made to use the original array. Do I need to make a new function?
The original data belongs to the original object, while the new data belongs to the new object. The same methods that access the original data will instead access the data in the new object so long you call those methods using the new object.
Topic archived. No new replies allowed.