Example #1
0
 public void update(Student newStudent)
 {
     foreach (Student student in this.repository)
     {
         if (student.getMatriculation() == newStudent.getMatriculation())
         {
             student.setName(newStudent.getName());
             student.setSerie(newStudent.getSerie());
             student.setClassId(newStudent.getClassId());
             student.setTeacher(newStudent.getTeacher());
             student.setNote1(newStudent.getNote1());
             student.setNote2(newStudent.getNote2());
             student.setNote3(newStudent.getNote3());
             student.setNote4(newStudent.getNote4());
             student.setFinalNote(newStudent.getFinalNote());
         }
     }
 }
 public String getStudentName()
 {
     return(model.getName());
 }