Skip to content
217317751JiayeChen edited this page Apr 1, 2024 · 2 revisions

Admin Class

Represents an administrative user in the system for management purposes.

Fields:

  • isActive: BooleanProperty indicating whether the admin user is active.

Constructors:

  • Admin(): Default constructor. Initializes isActive to false.
  • Admin(int userID, String username, String passwordKey, String firstName, String lastName, String email, String address, String phoneNumber, String gender, LocalDate dateOfBirth, boolean isActive): Constructor with parameters. Initializes fields with provided values.

Methods:

  • getIsActive(): boolean: Getter for isActive property.
  • setIsActive(boolean isActive): Setter for isActive property.

Superclass:

  • Inherits from the User class.

Usage Notes:

  • This class represents administrative users in the system. Admins have the authority to manage various aspects of the system.
  • The isActive property indicates whether the admin user is currently active in the system.

Clone this wiki locally