I have three classes – Album, Track, and PlaylistTrack that extends Track.
Track contains a Time object, and two strings for artist and title.
Album contains a vector of Tracks and a string for title.
PlaylistTrack extends Track in that it contains a pointer to the Album it belongs to.
My question is, how can I get that pointer to the Album that contains it in the class PlaylistTrack?
I don’t really understand exactly what you are asking, but it sounds like you want to have a way to get the album from a PlaylistTrack.