View Javadoc

1   package at.ac.tuwien.ifs.bpse.basic.domain;
2   
3   /**
4    * Student extends Person, hence inherits all properties from Person class (main data of a person)
5    */
6   public class Student extends Person {
7   
8       private String matnr;
9   
10      public Student() {
11      }
12  
13      public Student(String matnr, String firstname, String lastname) {
14          setMatnr(matnr);
15          setFirstname(firstname);
16          setLastname(lastname);
17      }
18  
19      public String getMatnr() {
20          return matnr;
21      }
22  
23      public void setMatnr(String matnr) {
24          this.matnr = matnr;
25      }
26  
27  }