public class Song extends MusicalElement
Constructor and Description |
---|
Song(java.lang.String title,
int duration,
java.lang.String content,
java.lang.String artist,
Genre genre) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArtist() |
java.lang.String |
getGenre() |
void |
setArtist(java.lang.String artist) |
void |
setGenre(Genre genre) |
java.lang.String |
toString() |
getContent, getDuration, getId, getTitle, setContent, setDuration, setId, setTitle
public Song(java.lang.String title, int duration, java.lang.String content, java.lang.String artist, Genre genre)
public java.lang.String getArtist()
public java.lang.String getGenre()
public void setArtist(java.lang.String artist)
public void setGenre(Genre genre)
public java.lang.String toString()
toString
in class java.lang.Object