forked from mastifikator/FantasyJavaPatterns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHuman.java
More file actions
39 lines (30 loc) · 809 Bytes
/
Human.java
File metadata and controls
39 lines (30 loc) · 809 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
package Adapter;
public class Human {
private String name;
private String proffesion;
private double strength;
private static int humanPassword = 111;
public Human(String name, String proffesion, double strength) {
this.name = name;
this.proffesion = proffesion;
this.strength = strength;
}
public static int getHumanPassword() {
return humanPassword;
}
public static void setHumanPassword(int humanPassword) {
Human.humanPassword = humanPassword;
}
public String getName() {
return name;
}
public String getProffesion() {
return proffesion;
}
public double getStrength() {
return strength;
}
public int tellMeTheHumanPassword(){
return humanPassword;
}
}