accepted method

bool accepted(
  1. Student s
)

Tente d’accepter ce choix pour l’étudiant donné. Retourne true si l'école valide le choix, sinon false.

Implementation

bool accepted(Student s) {
  //affectation d'une offre de séjour à un élève
  if (school.accepted(s)) {
    student.accepted = this;
    print("ACCEPTED CHOICE");
    return true;
  }
  return false;
}