-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSong.java
More file actions
33 lines (28 loc) · 762 Bytes
/
Song.java
File metadata and controls
33 lines (28 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
public class Song
{
// instance variables - replace the example below with your own
private String bandName;
private String songName;
private String albumCover;
private String songFile;
public Song(String bandName, String songName, String albumCover, String songFile)
{
// initialise instance variables
this.bandName = bandName;
this.songName = songName;
this.albumCover = albumCover;
this.songFile = songFile;
}
public String returnBand(){
return bandName;
}
public String returnSong(){
return songName;
}
public String returnCover(){
return albumCover;
}
public String returnFile(){
return songFile;
}
}