-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOuterwear.java
More file actions
57 lines (44 loc) · 1.39 KB
/
Outerwear.java
File metadata and controls
57 lines (44 loc) · 1.39 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
public class Outerwear extends ClothingItem{
/** Whether a piece of clothing is water proof or not */
private boolean isWaterproof;
/** Whether a piece of clothing is reversable or not */
private boolean isReversible;
/**
* @param itemID
* @param name
* @param quantity
* @param price
* @param brand
* @param size
* @param color
* @param isReversible
* @param isWaterproof
*/
public Outerwear(int itemID, String name, int quantity, double price,
String brand, double size, String color,
boolean isReversible, boolean isWaterproof){
super(itemID, name, price, quantity, brand, size, color);
this.isReversible = isReversible;
this.isWaterproof = isWaterproof;
}
/**
*Getter for isWaterProof
* @return isWaterproof
*/
public boolean getIsWaterproof(){ return this.isWaterproof;}
/**
* Getter for isReversable
* @return
*/
public boolean getIsReversible() {return this.isReversible;}
/**
* Setter for isWaterProof
* @param isWaterProof
*/
public void setIsWaterProof(boolean isWaterProof) {this.isWaterproof = isWaterProof;}
/**
* Setter for isReversable
* @param isReversable
*/
public void setIsReversable(boolean isReversable) {this.isReversible = isReversable;}
}