i got a class bank, with one data member of type account (other class)...
i need to create a function grow that increases the number of acounts by a certain number...
in order to dynamically allocate memory, i need to create a temp Bank object, copy all in it, delete the original object, recreate it with a larger number of accounts, and copy the data back in it and delete the temp object... right? sounds easy but i'm getting all confused because account is a class too... so... how do i go about this?
i'm not interested in code, i just need to understant how it works.

thanks.