-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTopping.java
45 lines (34 loc) · 998 Bytes
/
Topping.java
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
package com.gowthamrajk.pizzastore;
public class Topping {
private String toppingName;
private String spiceLevel;
private String description;
public Topping(String toppingName, String spiceLevel, String description) {
this.toppingName = toppingName;
this.spiceLevel = spiceLevel;
this.description = description;
}
public String getToppingName() {
return toppingName;
}
public void setToppingName(String toppingType) {
this.toppingName = toppingType;
}
public String getSpiceLevel() {
return spiceLevel;
}
public void setSpiceLevel(String spiceLevel) {
this.spiceLevel = spiceLevel;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public String toString() {
return "\nToppings Details => Topping Name : " + toppingName + ", spiceLevel : " + spiceLevel
+ ", Description : " + description;
}
}