I'm trying to write a basic, singly-linked list class in C++. I did it in my data structures class years back, but I can't remember the details.
Should my Node class have a copy constructor? It has a Node* as a member variable, and as far as I know you're always supposed to write a copy constructor, destructor, and assignment operator for classes that have dynamic members. But from what I've seen on the net, the List class takes care of the copying of Nodes. Is this really the case, and if so, why?