Question: / / This class def should be placed in the private section of Playlist / / at an appropriate location. ( What might be an

// This class def should be placed in the private section of Playlist
// at an "appropriate" location. (What might be an inappropriate location?)
class Node {
private:
Song_Entry _song;
Node *_next;
public:
Node(const Song_Entry& song = Song_Entry()) : _song(song),_next(nullptr){}
~Node(); // Do not do recursive free
Song_Entry& get_song(){ return _song; }
Node *get_next(){ return _next; }
Node *insert_next(Node *p);
Node *remove_next();
friend class Tests; // Don't remove this line
};

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!