java.lang.Object
com.prog3.ipt.Model.CitizenClasses.User
Direct Known Subclasses:
Citizen

public abstract class User extends Object
User is a class that represents a generic user registered into the system
  • Field Details

    • name

      private String name
    • surname

      private String surname
    • birthDate

      private LocalDate birthDate
    • email

      private String email
    • password

      private String password
  • Constructor Details

    • User

      protected User(String name, String surname, LocalDate birthDate, String email, String password)
      User constructor
      Parameters:
      name - User name
      surname - User surname
      birthDate - User birthdate
      email - User email which is used to register and login into the system
      password - User password which is used to log into the system
  • Method Details

    • setName

      void setName(String name)
    • setSurname

      void setSurname(String surname)
    • setBirthDate

      void setBirthDate(LocalDate birthDate)
    • setEmail

      void setEmail(String email)
    • setPassword

      void setPassword(String password)
    • getName

      public String getName()
    • getSurname

      public String getSurname()
    • getBirthDate

      public LocalDate getBirthDate()
    • getEmail

      public String getEmail()
    • getPassword

      public String getPassword()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object