Question: I attached the program and the example output. Can you guys split the file to 3 class files. Songmain.cpp , song.h ,and song.cpp. Thanks using
using namespace std; class Songf private: char* title char *artist; int year, double duration; public: Song0 title = NULL; artist = NULL; year 0; duration ; Song(char*ttle, char 'artist,int year, double duration) this-title title; this->artist-artist; this->year -year this->duration- duration void setTitle(char title); void setArtist(char*artist); void setYear(int year); void setDuration(double duration); const char getTitle0: const chargetArtistO const int getYear0: const double getDuration0: void Song::set Title(char title) this->title title void Song:setArtist(char artist)t this->artist-artist; void Song::set Year(int year)t this->year-year void Song::setDuration(double duration) this->duration duration
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
