forked from SadeeshaJayaweera/Java-Practical-Codes-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathItem.java
More file actions
30 lines (24 loc) · 676 Bytes
/
Copy pathItem.java
File metadata and controls
30 lines (24 loc) · 676 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
public class Item {
protected int location;
protected String description;
public Item(int location, String description) {
this.location = location;
this.description = description;
}
//Getter Method for location
public int getLocation() {
return location;
}
//Setter Method for Location
public void setLocation(int location) {
this.location = location;
}
//Getter Method for Description
public String getDescription() {
return description;
}
//Setter Method for Description
public void setDescription(String description) {
this.description = description;
}
}