/Users/johnr/Dropbox/johnrayworth.info/largeFilesOutsideJSR/__IB-Other/Other/IA-Solutions-2019/ChinChao/Product/gatepass/src/gatepass/GatePass.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 package gatepass;
 7 
 8 /**
 9  *
10  * @author 14367
11  */
12 public abstract class GatePass {
13     private String name = "name not set yet";
14     private int gradeLevel = -999;
15     private int id = -123;
16     private String comments = "not set yet"; 
17     
18     //constructors
19     public GatePass() {
20 
21     }
22 
23     public GatePass(String name, int gradeLevel, int id, String comments) { 
24         this.name = name;
25         this.gradeLevel = gradeLevel;
26         this.id = id;
27         this.comments = comments; 
28         
29     }
30 
31     //accessor methods
32 
33     public int getGrade() {
34         return gradeLevel;
35     }
36     
37     public String getName() {
38         return name;
39     }
40     
41     public int getId() {
42         return id;
43     }
44     
45     public String getComments(){
46         return comments;
47     }
48 
49     //sets
50 
51     public void setName(String name){
52         this.name = name;
53     }
54     
55     public void setGrade(int gradeLevel){
56         this.gradeLevel = gradeLevel;
57     }
58     
59     public void setId(int id) {
60         this.id = id;
61     }
62     
63     abstract int getPassNumber();
64 
65 }