Package com.project.system
Class Student
java.lang.Object
com.project.system.Student
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Gets the course the student is enrolled in.protected String
getEmail()
Gets the email of the student.protected String
getName()
Gets the name of the student.protected void
Sets the course the student is enrolled in.protected void
Sets the email of the student.protected void
Sets the name of the student.
-
Field Details
-
name
The name of the student. -
email
The email of the student. -
course
The course in which the student is enrolled.
-
-
Constructor Details
-
Student
Constructs a newStudent
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
Gets the name of the student.- Returns:
- The student's name.
-
setName
Sets the name of the student.- Parameters:
name
- The new name to set.
-
getEmail
Gets the email of the student.- Returns:
- The student's email address.
-
setEmail
Sets the email of the student.- Parameters:
email
- The new email address to set.
-
getCourse
Gets the course the student is enrolled in.- Returns:
- The name of the course.
-
setCourse
Sets the course the student is enrolled in.- Parameters:
course
- The new course name to set.
-