Module sc2002_fypms
Package models

Class Student


  • public class Student
    extends User
    The Student class represents a student user in the system. It extends the User class, which contains the basic user information.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Boolean isDeregistered
      The registration status of the student.
      private java.lang.String studentID
      The ID of the student.
    • Constructor Summary

      Constructors 
      Constructor Description
      Student​(java.lang.String studentID, java.lang.String name, java.lang.String email, java.lang.String password, boolean isDeregistered)
      Constructs a Student object with given student ID, name, email, password, and registration status.
    • Field Detail

      • studentID

        private java.lang.String studentID
        The ID of the student.
      • isDeregistered

        private java.lang.Boolean isDeregistered
        The registration status of the student.
    • Constructor Detail

      • Student

        public Student​(java.lang.String studentID,
                       java.lang.String name,
                       java.lang.String email,
                       java.lang.String password,
                       boolean isDeregistered)
        Constructs a Student object with given student ID, name, email, password, and registration status.
        Parameters:
        studentID - the ID of the student
        name - the name of the student
        email - the email address of the student
        password - the password of the student
        isDeregistered - the registration status of the student
    • Method Detail

      • getIsDeregistered

        public java.lang.Boolean getIsDeregistered()
        Returns whether a student is deregistered.
        Returns:
        the isDeregistered
      • setIsDeregistered

        public void setIsDeregistered​(java.lang.Boolean isDeregistered)
        Sets the isDeregistered status of the Student.
        Parameters:
        isDeregistered - the isDeregistered status to set
      • getStudentID

        public java.lang.String getStudentID()
        Returns the student ID of the Student.
        Returns:
        the student ID