aboutsummaryrefslogtreecommitdiff
path: root/Song.java
diff options
context:
space:
mode:
Diffstat (limited to 'Song.java')
-rw-r--r--Song.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/Song.java b/Song.java
index 81392ab..c7556b1 100644
--- a/Song.java
+++ b/Song.java
@@ -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();}
}