/Users/20442/NetBeansProjects/Real IA/src/Student.java
 1 /*
 2  * To change this license header, choose License Headers in Project Properties.
 3  * To change this template file, choose Tools | Templates
 4  * and open the template in the editor.
 5  */
 6 
 7 /**
 8  *
 9  * @author 20442
10  */
11 public class Student {
12     private String lastName = "not set yet"; // Lecroix
13     private String firstName= "not set yet"; // Justin
14     private int idNum = 999999999; // 20442, 19856, ... 
15     private String grade = ""; // 9, 10, 11, 12 only
16     private int year = 999999999; // 2018
17     
18     //Overloaded Constuctor
19     public Student() {
20         
21     }
22     
23     public Student(String lastName, String firstName, int idNum, String grade, int year){
24         this.lastName = lastName;
25         this.firstName = firstName;
26         this.idNum = idNum;
27         this.grade = grade;
28         this.year = year;
29     }
30     
31     // The set methods
32     public void setLastName(String lastName) {
33         this.lastName = lastName;
34     }
35 
36     public void setFirstName(String firstName) {
37         this.firstName = firstName;
38     }
39 
40     public void setIdNum(int idNum) {
41         this.idNum = idNum;
42     }
43 
44     public void setGrade(String grade) {
45         this.grade = grade;
46     }
47     
48     public void setYear(int year) {
49         this.year = year;
50     }
51 
52     // The get methods
53     public String getLastName() {
54         return lastName;
55     }
56 
57     public String getFirstName() {
58         return firstName;
59     }
60 
61     public int getIdNum() {
62         return idNum;
63     }
64 
65     public String getGrade(){
66        return grade;
67     }
68     
69     public int getYear() {
70         return year;
71     }
72     
73     
74      
75 }
76