My ClassPlaylistTrack
是Track
(扩展该类)的子类:
#include "track.h"
#include "album.h"
class PlaylistTrack : public Track //extends Track Class
{
private:
Album & newAlbum; //or
Album * newAlbum; //?
public:
PlaylistTrack(void);
~PlaylistTrack(void);
};
我希望我有正确的语法。您如何为出现特定曲目的专辑添加引用或指针?