-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathArticle.java
More file actions
68 lines (54 loc) · 1.32 KB
/
Article.java
File metadata and controls
68 lines (54 loc) · 1.32 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
61
62
63
64
65
66
67
68
package onlineshop.merchandise;
public class Article {
/** Unique article number */
protected int articleNo;
/** Display-title of this Article */
protected String title;
/** Manufacturer of this Article */
protected String manufacturer;
/** Shop price */
protected double price;
/** URL to the image */
protected String image;
public Article() { }
public Article(String title, String manufacturer) {
this.title = title;
this.manufacturer = manufacturer;
}
public Article(String title, String manufacturer, double price, String image) {
this.title = title;
this.manufacturer = manufacturer;
this.price = price;
this.image = image;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public int getArticleNo() {
return articleNo;
}
public void setArticleNo(int articleNo) {
this.articleNo = articleNo;
}
public String getManufacturer() {
return manufacturer;
}
public void setManufacturer(String manufacturer) {
this.manufacturer = manufacturer;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
}