Class Staff


public class Staff extends User
A Staff object that is derived from User object

A Staff object used to store all the parameters about a Staff

  • Constructor Details

    • Staff

      public Staff(String userID, String userName, String password)
      Constructor for Staff object (requires 3 parameters)
      Parameters:
      userID - The userID
      userName - The user name
      password - The password
    • Staff

      public Staff(String userName, String password)
      Constructor for staff object (require 2 parameters)
      Parameters:
      userName - The user name
      password - The password
  • Method Details

    • getPassword

      public String getPassword()
      Method to get Staff password
      Returns:
      The password
    • setPassword

      public void setPassword(String password)
      Method to set Password for Staff
      Parameters:
      password - The password