-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemberInfo.java
More file actions
105 lines (69 loc) · 1.99 KB
/
MemberInfo.java
File metadata and controls
105 lines (69 loc) · 1.99 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/***************************************************************
* Name : Program Name
* Author: Larry Paucar
* Created : Apr 20, 2023
* Course: CIS 152 - Data Structure
* Version: 1.0
* OS: Windows XX
* IDE: eclipse
* Copyright : This is my own original work
* based on specifications issued by our instructor
* Description : This will contain the member info for the program,
* which will include member names, member ID's as well
* as phone numbers and email addresses and locker numbers.
* Academic Honesty: I attest that this is my original work.
* I have not used unauthorized source code, either modified or
* unmodified. I have not given other fellow student(s) access
* to my program.
***************************************************************
*/
public class MemberInfo {
private String name;
private int id;
private int lockerNumber;
private String email;
private String phone;
public MemberInfo(String name, int id, int lockerNumber, String email, String phone) {
super();
this.name = name;
this.id = id;
this.lockerNumber = lockerNumber;
this.email = email;
this.phone = phone;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getLockerNumber() {
return lockerNumber;
}
public void setLockerNumber(int lockerNumber) {
this.lockerNumber = lockerNumber;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
@Override
public String toString() {
return "MemberInfo [name=" + name + ", id=" + id + ", lockerNumber=" + lockerNumber + ", email=" + email
+ ", phone=" + phone + "]";
}
}