-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMonster.java
More file actions
31 lines (27 loc) · 771 Bytes
/
Copy pathMonster.java
File metadata and controls
31 lines (27 loc) · 771 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
public class Monster {
private String name;
private String treasureClass;
/**
* Constructor for the Monster object
* @param name the name of the monster
* @param treasureClass the treasureClass associated with this monster
*/
public Monster(String name, String treasureClass) {
this.name = name;
this.treasureClass = treasureClass;
}
/**
* Getter method for the name of the Monster object
* @return name the string representing the name of this Monster
*/
public String getMonsterName() {
return this.name;
}
/**
* Getter method for the treasureClass of the Monster object
* @return treasureClass the string representing the treasureClass of this Monster
*/
public String getTreasureClass() {
return this.treasureClass;
}
}