Class Staff
java.lang.Object
User
Staff
A Staff object that is derived from User object
A Staff object used to store all the parameters
about a Staff
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethod to get Staff passwordvoidsetPassword(String password) Method to set Password for StaffMethods inherited from class User
getUserID, getUserName, getUserType, setUserID, setUserName, setUserType
-
Constructor Details
-
Staff
Constructor for Staff object (requires 3 parameters)- Parameters:
userID- The userIDuserName- The user namepassword- The password
-
Staff
Constructor for staff object (require 2 parameters)- Parameters:
userName- The user namepassword- The password
-
-
Method Details
-
getPassword
Method to get Staff password- Returns:
- The password
-
setPassword
Method to set Password for Staff- Parameters:
password- The password
-