is_incoherent method

bool is_incoherent()

Vérifie si ce choix est incohérent avec la spécialisation de l’école. Retourne true si l'école ne propose pas la spécialité attendue.

Implementation

bool is_incoherent(){
  if (!(school.specialization.contains(student.get_next_year()))){
    return true;
  }
  else {
    return false;
  }

}