-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEducation.java
109 lines (96 loc) · 2.72 KB
/
Education.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
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
106
107
108
109
/**
* The Education class support the resume class to set the education
* of the student.
* @author Vidhee Patel and Joshua DuPuis
*/
public class Education {
private String nameOfUniversity;
private String collegeMajor;
private double GPA;
private String expectedGradDate;
/**
* This is the default constructor
*/
public Education () {
}
/**
* This is the parameterized constructor of the education class.
* @param nameofUniversity The name of the university the student attended
* @param major The student's major
* @param gpa The student's GPA
* @param expectedGradDate The student's expected graduation date
*/
public Education(String nameOfUniversity, String major, double gpa, String expectedGradDate){
this.nameOfUniversity = nameOfUniversity;
this.collegeMajor = major;
this.GPA = gpa;
this.expectedGradDate = expectedGradDate;
}
/**
* The setName method sets the name of University.
* @param name University name
*/
public void setName(String name) {
this.nameOfUniversity = name;
}
/**
* The getName method returns the name of the University.
* @return nameofUniversity
*/
public String getName() {
return nameOfUniversity;
}
/**
* The setMajor method sets the major of the student.
* @param major
*/
public void setMajor(String major) {
this.collegeMajor = major;
}
/**
* The getMajor method returns the major of the student.
* @return collegeMajor
*/
public String getMajor() {
return collegeMajor;
}
/**
* The setGPA method sets the GPA of the student.
* @param gpa
*/
public void setGPA(double gpa) {
this.GPA = gpa;
}
/**
* The getGPA method return the gpa of the student.
* @return
*/
public double getGPA() {
return GPA;
}
/**
* The setExpectedGradDate setd the expected graduation date in the form of
* MM/YYYY.
* @param date
*/
public void setExpectedGradDate(String date)
{
this.expectedGradDate = date;
}
/**
* The getExpectedGradDate returns the expected graduation date.
* @return expectedGradDate
*/
public String getExpectedGradDate() {
return expectedGradDate;
}
/**
* The toString method converts an education experience to a String
* @return A string representation of an education experience
*/
public String toString() {
return nameOfUniversity + ":\n " + "Graduation Date: " +
expectedGradDate + "\n " + "Major: " + collegeMajor + "\n " +
"GPA: " + GPA + "\n";
}
}