blob: b5f64460941b16aa13efbeca7c1ac42de2fdc452 (
plain)
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
|
/** The MusicalElement contains the base of songs and audibooks.
* It is the abstract class they will take.
* We use the classical get and set here.*/
class MusicalElement {
private int id, duration;
private String title, content;
public MusicalElement(int id, String title, int duration, String content) {
this.id=id;
this.title=title;
this.duration=duration;
this.content=content;
}
public int getId(){return id;}
public String getTitle(){return title;}
public int getDuration(){return duration;}
public String getContent(){return content;}
public void setId(){this.id=id;}
public void setTitle(){this.title=title;}
public void setDuration(){this.duration=duration;}
public void setContent(){this.content=content;}
}
|