class Track:
'''Class representing a song with a trackname, artist, album, year, genre'''
def __init__(self, input_trackname, input_artist, input_albumArtist, input_album, input_year, input_genre):
'''Creates new iTunes Song with given trackname, artist, album, year and genre'''
self.trackname = input_trackname
self.artist = input_artist
self.albumArtist = input_albumArtist
self.album = input_album
self.year = input_year
self.genre = input_genre
def getTrackname(self):
'''Returns the trackname'''
return self.trackname
def getArtist(self):
'''Returns the artist'''
return self.artist
def getAlbumArtist(self):
'''Returns the album artist'''
return self.albumArtist
def getAlbum(self):
'''Returns the album'''
return self.album
def getYear(self):
'''Returns the year'''
return self.year
def getGenre(self):
'''Returns the genre'''
return self.genre
def __str__(self):
'''Returns string of track'''
return "Title: "+str(self.trackname)+", Artist: "+str(self.artist)+", Album: "+str(self.album)+", Year: "+str(self.year)+", Genre: "+str(self.genre)