package edu.oakland.OUSoft.items;

/**
 * "A student class should contain more information such as the number of years in college,"
 */
public class Student {
}

@@ -152,10 +152,1129 @@
 udent %7B%0A
+%09%0A%09private String major;%0A%09%0A%09private int numYearsAttended;%0A%09%0A%09private double GPA;%0A%09%0A%09/**%0A%09 * Create an empty Student%0A%09 */%0A%09public Student() %7B%0A%09%7D%0A%09%0A%09/**%0A%09 * Create a Student with the specified major%0A%09 *%0A%09 * @param major The major of the Student%0A%09 */%0A%09public Student(String major) %7B%0A%09%09this.major = major;%0A%09%7D%0A%09%0A%09/**%0A%09 * Create a Student with the specified major and number of years attended%0A%09 *%0A%09 * @param major The major of the Student%0A%09 * @param yearsAttended The number of years the Student has been in attendance%0A%09 */%0A%09public Student(String major, int yearsAttended) %7B%0A%09%09this.major = major;%0A%09%09this.numYearsAttended = yearsAttended;%0A%09%7D%0A%09%0A%09public String getMajor() %7B%0A%09%09return major;%0A%09%7D%0A%09%0A%09public void setMajor(String major) %7B%0A%09%09this.major = major;%0A%09%7D%0A%09%0A%09public int getNumYearsAttended() %7B%0A%09%09return numYearsAttended;%0A%09%7D%0A%09%0A%09public void setNumYearsAttended(int numYearsAttended) %7B%0A%09%09this.numYearsAttended = numYearsAttended;%0A%09%7D%0A%09%0A%09public double getGPA() %7B%0A%09%09return GPA;%0A%09%7D%0A%09%0A%09public void setGPA(double GPA) %7B%0A%09%09if (GPA %3C 0 %7C%7C GPA %3E 4.0) %7B%0A%09%09%09throw new IllegalArgumentException(%22GPA out of bounds%22);%0A%09%09%7D%0A%09%09this.GPA = GPA;%0A%09%7D%0A
 %7D%0A

Implement Student