Вы должны добавить дочерний субъект в конструктор TeacherInfo , как и другой объект.
public TeacherInfo(String name, String department, String phone, String email, String password, ArrayList<String> subjects) {
this.name = name;
this.department = department;
this.phone = phone;
this.email = email;
this.password = password;
this.subjects = subjects;
}
Или вам нужно реализовать Geter: Seter для дочерней сущности.