Explanation of the operator= method overload?

Can anyone explain to me what the purpose of the assignment operator method should look like? Are you just doing a deep copy of all your data? For instance:

Say I have a class with 4 data members, and one of the four is an array. I would need to just create a new array, dynamically of course, the size of my array + whatever increase I need and then copy the 3 data members from the original object, and then a for loop to deep copy all the data from one array to the new array with the new size?
If that's what you want to do, then yes.
Topic archived. No new replies allowed.