-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathCoffee.java
More file actions
30 lines (28 loc) · 803 Bytes
/
Coffee.java
File metadata and controls
30 lines (28 loc) · 803 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
package com.booleanuk.core;
public class Coffee extends Item {
public Coffee(SKU SKU) {
this.SKU = SKU;
switch (SKU) {
case COFB:
this.price = 0.99F;
this.name = "Coffee";
this.variant = "Black";
break;
case COFW:
this.price = 1.19F;
this.name = "Coffee";
this.variant = "White";
break;
case COFC:
this.price = 1.29F;
this.name = "Coffee";
this.variant = "Capuccino";
break;
case COFL:
this.price = 1.29F;
this.name = "Coffee";
this.variant = "Latte";
break;
}
}
}