add_student method

void add_student(
  1. dynamic id,
  2. dynamic name,
  3. dynamic choices,
  4. dynamic specialization,
  5. dynamic rankingS1,
  6. dynamic ectsNumber,
  7. dynamic langLvl,
  8. dynamic missedHours,
  9. dynamic comment,
)

Méthode d’ajout ou de modification des informations d’un étudiant.

Implementation

void add_student(id, name, choices, specialization, rankingS1, ectsNumber,
    langLvl, missedHours, comment) {
  this.id = id;
  this.name = name;
  for (int i = 0; i < choices.length; i++) {
    this.choices = choices[i];
  }

  this.specialization = specialization;
  this.ranking_s1 = rankingS1;
  this.ects_number = ectsNumber;
  this.lang_lvl = langLvl;
  this.missed_hours = missedHours;
  this.comment = comment;
  year_departement(specialization);
  accepted_school = null;
}