Class User

java.lang.Object
com.example.project.models.User

public class User extends Object
Represents a user in the application that can log in.
  • Constructor Details

    • User

      public User(String username, String password, int highscore)
      Constructor.
      Parameters:
      username - username.
      password - password.
      highscore - highscore.
  • Method Details

    • getUsername

      public String getUsername()
      get username.
      Returns:
      username.
    • getPassword

      public String getPassword()
      get password.
      Returns:
      password.
    • getHighscore

      public int getHighscore()
      get highscore.
      Returns:
      returns highscore.