01: package wingscms;
02:
03: /**
04: * Class represents a single Product
05: *
06: * @author Christian Fetzer
07: */
08: public class Product {
09:
10: final private Integer itemnumber;
11: final private String description;
12: private double price;
13:
14: public Integer getItemnumber() {
15: return itemnumber;
16: }
17:
18: public String getDescription() {
19: return description;
20: }
21:
22: public double getPrice() {
23: return price;
24: }
25:
26: public void setPrice(double price) {
27: this .price = price;
28: }
29:
30: public Product(Integer itemnumber, String description,
31: double initialprice) {
32: this.itemnumber = itemnumber;
33: this.description = description;
34: setPrice(initialprice);
35: }
36: }
|