-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClothingItem.java
More file actions
77 lines (60 loc) · 1.51 KB
/
ClothingItem.java
File metadata and controls
77 lines (60 loc) · 1.51 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
69
70
71
72
73
74
75
76
77
/**
* @author Thomas Wesley
* date: 3-10-26
* Puprose: class for all clothing items in the store.
*/
public class ClothingItem extends ShelfStable {
/** brand name of the item */
private String brand;
/** size of the item */
private double size;
/** color of clothing item */
private String color;
/**
* Constructor for ClothingItem
* @param itemID
* @param name
* @param price
* @param quantity
* @param brand
* @param size
* @param color
*/
public ClothingItem(int itemID, String name, double price, int quantity, String brand, double size, String color){
super(itemID, name, price, quantity);
this.brand = brand;
this.size = size;
this.color = color;
}
/**
* Getter for brand type of the clothing
* @return brand
*/
public String getBrand() {return this.brand;}
/**
* getter the size of the clothing item
* @return size
*/
public double getSize() {return this.size;}
/**
* Getter the color of the
* @return color
*/
public String getColor() {return this.color;}
/**
* Setter for the brand
* @param brand
*
*/
public void setBrand(String brand) {this.brand = brand;}
/**
* Setter for the size
* @param size
*/
public void setSize(double size) {this.size = size;}
/**
* Setter for the color
* @param color
*/
public void setColor(String color) {this.color = color;}
}