-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShelfStable.java
More file actions
35 lines (30 loc) · 870 Bytes
/
ShelfStable.java
File metadata and controls
35 lines (30 loc) · 870 Bytes
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
/**
* @author Zachary Devore
* Date: 3/9/26
* Section: CSC 311-002
*/
public class ShelfStable extends StoreItem {
/** Boolean instance variable to tell weather an item is shelf stable or not */
private boolean isShelfStable;
/**
* Initializes a new instance is ShelfStable
*/
public ShelfStable(int itemID, String name, double price, int quantity) {
super(itemID, name, price, quantity);
isShelfStable = true;
}
/**
* Sets isShelfStable to the provides boolean param
* @param isShelfStable
*/
public void setIsShelfStable(boolean isShelfStable) {
this.isShelfStable = isShelfStable;
}
/**
* Gets the current value of isShelfStable
* @return If it is shelf stable or not
*/
public boolean getIsShelfStable() {
return this.isShelfStable;
}
}