Skip to content
A Programmer edited this page Feb 13, 2024 · 7 revisions

User Class

Superclass for sorting user details and other information.

Author: Cyrus Yang (light touchups by Kyle Williamson)

Class Attributes:

userID: An integer representing the user's ID.

passwordKey: A string representing the user's password.

firstName: A string representing the user's first name.

lastName: A string representing the user's last name.

email: A string representing the user's email address.

Constructors:

public User(): Default constructor for general technical operations, initializing attributes with default values.

public User(int userID, String pass, String fName, String lName, String email): Constructor for creating new user accounts with specified values.

public User(User user): Constructor for creating a new user object based on an existing User object.

Getter Methods:

getUserID(): gets Username

getPasswordKey(): gets Password

getFirstName(): gets FirstName

getLastName(): gets LastName

getEmail()): gets Email

Setter Methods:

changePassword(String pass): Method to change the user's password.

changeEmail(String email): Method to change the user's email address.

changeFirstName(String firstName): Method to change the user's first name.

changeLastName(String lastName): Method to change the user's last name.

Usage Notes:

This class is designed to be a foundation for other classes that might extend or utilize user-related functionalities. It provides basic methods for creating, retrieving, and modifying user information. It is the MasterClass for Advisor and Client

Clone this wiki locally