forked from mastifikator/FantasyJavaPatterns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrc.java
More file actions
37 lines (29 loc) · 728 Bytes
/
Orc.java
File metadata and controls
37 lines (29 loc) · 728 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
package Adapter;
public class Orc {
private String name;
private String proffesion;
private double strength;
private static int orcPassword = 666;
public Orc(String name, String proffesion, double strength) {
this.name = name;
this.proffesion = proffesion;
this.strength = strength;
}
public Orc() {
}
public String getName() {
return name;
}
public String getProffesion() {
return proffesion;
}
public double getStrength() {
return strength;
}
public void setOrcPassword(int orcPassword) {
this.orcPassword = orcPassword;
}
public int tellMeTheOrcPassword(){
return orcPassword;
}
}