-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.java
More file actions
35 lines (28 loc) · 785 Bytes
/
Student.java
File metadata and controls
35 lines (28 loc) · 785 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
public class Student {
private String name;
private String matricNumber;
private String phoneNumber;
public Student(String name, String matricNumber, String phoneNumber) {
this.name = name;
this.matricNumber = matricNumber;
this.phoneNumber = phoneNumber;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getMatricNumber() {
return matricNumber;
}
public void setMatricNumber(String matricNumber) {
this.matricNumber = matricNumber;
}
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
}