-
Notifications
You must be signed in to change notification settings - Fork 0
/
Student.java
49 lines (37 loc) · 1.12 KB
/
Student.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
47
48
49
package LAB.Sixth;
public class Student {
private int studentId;
private String studentName;
private double studentCGPA;
public Student() {
}
public Student(int studentId, String studentName, double studentCGPA) {
this.studentId = studentId;
this.studentName = studentName;
this.studentCGPA = studentCGPA;
}
public int getStudentId() {
return studentId;
}
public void setStudentId(int studentId) {
this.studentId = studentId;
}
public String getStudentName() {
return studentName;
}
public void setStudentName(String studentName) {
this.studentName = studentName;
}
public double getStudentCGPA() {
return studentCGPA;
}
public void setStudentCGPA(double studentCGPA) {
this.studentCGPA = studentCGPA;
}
@Override
public String toString() {
return "\n [Student ID : " + studentId +
" || Student Name : " + studentName +
" || Student CGPA : " + studentCGPA + "]";
}
}