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
47 lines (33 loc) · 824 Bytes
/
Copy pathItem.java
File metadata and controls
47 lines (33 loc) · 824 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
36
37
38
39
40
41
42
43
44
45
46
47
/*
This is the 7th Question of the assignment
*/
public class Item {
protected static int Location;
protected static String Description;
//constructor - method
public Item (int Location, String Description)
{
this.Description =Description;
this.Location = Location;
}
// Getter Method for Location
public static int getLocation()
{
return Location;
}
//Setter Method for Location
public static void setLocation(int Location)
{
Item.Location = Location;
}
//Getter Method for Description
public static String getDescription()
{
return Description;
}
//Setter Method for Description
public static void setDescription(String Description)
{
Item.Description = Description;
}
}