blob: c409ce763e021562b4435ddf369a6169c2df403a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
interface Item {
int getId();
String getTitle();
int getDuration();
}
class MusicalElement implements Item {
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;}
}
|