add Song class
This commit is contained in:
@@ -14,6 +14,7 @@ public class Song {
|
||||
public String getSongName() {
|
||||
return songName;
|
||||
}
|
||||
|
||||
public String getArtist() {
|
||||
return artist;
|
||||
}
|
||||
@@ -21,4 +22,10 @@ public class Song {
|
||||
public String getSongAddress() {
|
||||
return songAddress;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
String result = getSongName() + " By " + getArtist();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user