MCPcopy Create free account
hub / github.com/Anchals24/Low-Level-Design / Item

Class Item

StateDesignPattern/Item.java:3–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package BehaviouralDesignPatterns.StateDesignPattern;
2
3public class Item {
4 ItemType type;
5 int price;
6
7 public ItemType getType() {
8 return type;
9 }
10
11 public void setType(ItemType type) {
12 this.type = type;
13 }
14
15 public int getPrice() {
16 return price;
17 }
18
19 public void setPrice(int price) {
20 this.price = price;
21 }
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected