-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathStudent.java
More file actions
80 lines (66 loc) · 1.56 KB
/
Student.java
File metadata and controls
80 lines (66 loc) · 1.56 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
package fc.java.model;
public class Student {
private String name;
private String dept;
private int age;
private String email;
private int year;
private String phone;
public Student() {
}
public Student(String name, String dept, int age, String email, int year, String phone) {
this.name = name;
this.dept = dept;
this.age = age;
this.email = email;
this.year = year;
this.phone = phone;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDept() {
return dept;
}
public void setDept(String dept) {
this.dept = dept;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public int getYear() {
return year;
}
public void setYear(int year) {
this.year = year;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
@Override
public String toString() {
return "Student{" +
"name='" + name + '\'' +
", dept='" + dept + '\'' +
", age=" + age +
", email='" + email + '\'' +
", year=" + year +
", phone='" + phone + '\'' +
'}';
}
}