Destructor
So, all we have to do is write a destructor
to deallocate our dynamic memory.
list::~list() {
     delete [] my_list;
     my_list = NULL;
     •••
}
(Notice the ~ in front of the function name)
(It can take NO arguments and has NO return type)
(This too must be in the class interface....)