-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeacher.java
More file actions
46 lines (38 loc) · 1014 Bytes
/
Teacher.java
File metadata and controls
46 lines (38 loc) · 1014 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
40
41
42
43
44
45
46
package model;
public class Teacher {
private final int id;
private final int number;
private final String shortName;
private final String fullName;
private final String email;
public Teacher(int id, int number, String shortName, String fullName, String email) {
this.id = id;
this.number = number;
this.shortName = shortName;
this.fullName = fullName;
this.email = email;
}
public int getId() {
return id;
}
public int getNumber() {
return number;
}
public String getShortName() {
return shortName;
}
public String getFullName() {
return fullName;
}
public String getEmail() {
return email;
}
@Override
public String toString() {
return "{ID: " + id +
", Number: " + number +
", ShortName: \"" + shortName +
"\", Name: \"" + fullName +
"\", Email: \"" + email + "\"}";
}
}