-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeacher.java
More file actions
21 lines (19 loc) · 868 Bytes
/
Copy pathTeacher.java
File metadata and controls
21 lines (19 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import java.io.*;
import java.util.ArrayList;
/** Project 4 - Teacher.java
* The Teacher class contains the login information that belong to teacher user.
* This includes their name, username, and password. A super is used to access the teacher and call
* functions in the Teacher constructor.
*
* @author Aarohi Panzade, Abel Zazjon, Aditi Barla, Yaseen Shady
*
* @version 11/14/21
*/
//extending User class to access the teacher login variables/fields
// implements Serializable to use the Teacher object and store/serialize it
public class Teacher extends User implements Serializable {
// A super is used to access the teacher and call functions in the Teacher constructor from the User.java
public Teacher(String teacherName, String teacherUsername, String teacherPassword) {
super(teacherName, teacherUsername, teacherPassword);
}
}