diff options
author | Masfehico <clyhtsuriva@gmail.com> | 2020-12-07 14:55:09 +0100 |
---|---|---|
committer | Masfehico <clyhtsuriva@gmail.com> | 2020-12-07 14:55:09 +0100 |
commit | 8f19fb3b2578db523fa574427aacd51ae873cbc2 (patch) | |
tree | 56f3070c821f066743965aaab4942840cec73b80 /Song.java | |
parent | 32b7e1122e56f9b9fbc6e23a02d1edbbcf638ced (diff) |
Updating song and audiobook accordingly to the last commit
Diffstat (limited to 'Song.java')
-rw-r--r-- | Song.java | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,13 +1,13 @@ public class Song extends MusicalElement { private String artist, genre; - public Song(int id, String title, int duration, String content, String artist, String genre) { + public Song(int id, String title, int duration, String content, String artist, Genre genre) { super(id, title, duration, content); this.artist=artist; - this.genre=genre; + this.genre=genre.name(); } public String getArtist(){return artist;} public String getGenre(){return genre;} public void setArtist(String artist){this.artist=artist;} - public void setGenre(String genre){this.genre=genre;} + public void setGenre(Genre genre){this.genre=genre.name();} } |