Question: Using the following class fragment (note that the data is stored indirectly using a pointer in the node): class List {private: struct Node {NodeData *data;

Using the following class fragment (note that the data is stored indirectly using a pointer in the node): class List {private: struct Node {NodeData *data; Node *next;}; Node *head;}; Write the copy constructor for this class. Do not use any other methods in your implementation, except that you may use the copy constructor for the NodeData class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
