daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest May 16th, 2018 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 ClassPackage;
  7.  
  8. /**
  9.  *
  10.  * @author Ryan
  11.  */
  12.  
  13. //Extending the parent class of user into this class
  14. public class Staff extends User{
  15.  
  16.     //Decleration
  17.     private int staffID;
  18.     private boolean isStaff;
  19.  
  20.     //Getter
  21.     public int getStaffID() {return staffID;}
  22.     public boolean getStaff() {return isStaff;}
  23.  
  24.     //Setter
  25.     public void setStaffID(String StaffID) {this.staffID = staffID;}
  26.     public void setIsStaff(boolean isStaff) {this.isStaff = isStaff;}
  27.    
  28.     //Constructor
  29.     public Staff(int staffID, boolean isStaff) {
  30.         staffID = 1;
  31.         isStaff = true;
  32.     }
  33.    
  34.  
  35.     //Constructor with call to Superclass
  36.     public Staff(int staffID, boolean isStaff, String firstName, String lastName, String password, String phoneNumber, String mobileNumber, String email, String postcode, String town, String street, String houseNo) {
  37.         super(firstName, lastName, password, phoneNumber, mobileNumber, email, postcode, town, street, houseNo);
  38.         this.staffID = staffID;
  39.         this.isStaff = isStaff;
  40.     }
  41. }
RAW Paste Data
Top