add Song class

This commit is contained in:
2026-05-28 11:10:49 +03:30
parent 65b7bff1f2
commit 7f647d4073
+7
View File
@@ -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;
}
}