-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathCD.java
More file actions
60 lines (48 loc) · 1.19 KB
/
CD.java
File metadata and controls
60 lines (48 loc) · 1.19 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package domain;
public class CD {
private String title;
private String artist;
private String country;
private String company;
private float price;
private int year;
public CD() {
}
public CD(String title, String artist, String country, String company, float price, int year) {
this.title = title;
this.artist = artist;
this.country = country;
this.company = company;
this.price = price;
this.year = year;
}
public String getTitle() {
return title;
}
public String getArtist() {
return artist;
}
public String getCountry() {
return country;
}
public String getCompany() {
return company;
}
public float getPrice() {
return price;
}
public int getYear() {
return year;
}
@Override
public String toString() {
return "CD{" +
"title='" + title + '\'' +
", artist='" + artist + '\'' +
", country='" + country + '\'' +
", company='" + company + '\'' +
", price=" + price +
", year=" + year +
'}';
}
}