Class Student

java.lang.Object
com.project.system.Student

public class Student extends Object
The Student class represents a student in the Student-Course Registration System. It contains the student's name, email, and the course they are enrolled in.
  • Field Details

    • name

      private String name
      The name of the student.
    • email

      private String email
      The email of the student.
    • course

      private String course
      The course in which the student is enrolled.
  • Constructor Details

    • Student

      public Student(String name, String email, String course)
      Constructs a new Student instance with the specified name, email, and course.
      Parameters:
      name - The name of the student.
      email - The email address of the student.
      course - The course the student is enrolled in.
  • Method Details

    • getName

      protected String getName()
      Gets the name of the student.
      Returns:
      The student's name.
    • setName

      protected void setName(String name)
      Sets the name of the student.
      Parameters:
      name - The new name to set.
    • getEmail

      protected String getEmail()
      Gets the email of the student.
      Returns:
      The student's email address.
    • setEmail

      protected void setEmail(String email)
      Sets the email of the student.
      Parameters:
      email - The new email address to set.
    • getCourse

      protected String getCourse()
      Gets the course the student is enrolled in.
      Returns:
      The name of the course.
    • setCourse

      protected void setCourse(String course)
      Sets the course the student is enrolled in.
      Parameters:
      course - The new course name to set.