Question: Given PlayList.h please help me write PlaylList.cpp Class PlayList Your PlayList class will have a single data member ( private member variable ), a Set

Given PlayList.h please help me write PlaylList.cpp

Class PlayList

Your PlayList class will have a single data member (private member variable), a Set object called playlist_ which will store your Songs:

Set playlist_;

Your PlayList will have the following operations (public member functions)

PlayList();

PlayList(const Song& a_song);

int getNumberOfSongs() const;

bool isEmpty() const;

bool addSong(const Song& new_song);

bool removeSong(const Song& a_song);

void clearPlayList();

void displayPlayList() const;

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!