



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




#include <iostream.h> #include <string.h> #include <stdlib.h>
using namespace std;
class User; class Band; class Track; class Album; class Artist; class Listener; class POP_Music; class Film_Music; class Folk_Music; class Classic_Music; class MusicItems; class MusicCategory; class Administrator; class SongLibrarySystem;
class User //User class prototype { private:
int ID; string Name;
public: void playTrack(); void getName(); void getID();
};
class Listener:User //Listener class prototype and its relation with base class User, here Listener is child class { public: void playTrack();
};
class Administrator:User //Administrator class prototype and its relation with base class User, here Listener is child class { private: string Password;
public:
void getPassword(); bool addTrack(); bool deleteTrack(); bool updateTrack(); bool addArtist(); bool deleteArtist(); bool updateArtist(); bool addAlbum(); bool deleteAlbum(); bool updateAlbum(); bool addMusicCategory(); bool deleteMusicCategory(); bool updateMusicCategory();
};
class SongLibrarySystem //SongLibrarySystem class prototype which have aggregation relationship with User and Music Items { private: User *user; MusicItems *musicitem;
public: void getUser(); void getMusicItem(); };
class MusicCategory //MusicCategory class prototype which have composition relationship with Music Items Also have four child classes as well along with aggregation relation with Band and Artist { private: Artist *artist; Band *band;
public: void getAlbum(); void getTrack(); void getArtist();
};
class MusicItems //MusicItems class prototype which have aggregation relationship with Song Library System { private: MusicCategory musiccategory;
public: void getMusicCategory(); void getAlbum(); void getArtist();
void downloadTrack(); void getTrackName(); void getTrackID(); void getLyrics();
};
class Album //Album class prototype which have composition relation with Artist { private: int AlnumID; string AlbumTitle; int TrackNumber; int Year; Track track;
public: void getTrack(); void vewTrack(); void vewTracknumber(); void viewYear(); void getAlbumID(); void getTitle();
};
class Artist //Artist class prototype which have aggregation relation with Music Category
{ private: string ArtistName; Album Albums; Track Tracks;
public: void getTrack(); void getAlbum(); void getArtistName(); void getMusicCategory();
};
class Band //Band class prototype which have aggregation relation with Music Category and composition relationship with Artist
{ private: Artist art; string BandName; string BandDetails;
public:
void getArtist(); void getBandDetails(); void getBandName();
main () { cout<<"This is just a prototype of all classes"; cout<<endl; system("PAUSE");
}