-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPerson.java
47 lines (43 loc) · 974 Bytes
/
Person.java
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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package CodeForGood;
/**
*
* @author Quentin Goss
*/
public class Person {
private int id;
private String username;
private String pass;
public Person(){
id = 1;
username = "DEFAULT";
pass = "PASSWORD";
}
public Person(int pID, String pUsername, String pPass){
id = pID;
username = pUsername;
pass = pPass;
}
public int getID(){
return id;
}
public void setID(int newID){
id = newID;
}
public String getUsername(){
return username;
}
public void setUsername(String newUsername){
username = newUsername;
}
public String getPass(){
return pass;
}
public void setPass(String newPass){
pass = newPass;
}
}