Page 838 - IT2
P. 838

this.seance.add(newSeance);
                        newSeance.setSalle(this);
                     }
                  }


                  public void removeSeance(Seance oldSeance) {
                     if (oldSeance == null)
                        return;
                     if (this.seance != null)
                        if (this.seance.contains(oldSeance))
                        {

                           this.seance.remove(oldSeance);
                           oldSeance.setSalle((Salle)null);
                        }
                  }

                  public void replaceSeance (Seance oldSeance, Seance newSeance) {
                      removeSeance(Seance oldSeance);
               addSeance(Seance newSeance)
                  }

                       public override bool Equals(object obj)
                       {
                           Salle s = (Salle)obj;
                           if (s == null)
                               return false;
                           return this.titreFilm == s.titreFilm;
                       }




                   6.  Classe Séance:
               public class Seance {
                  private int numSea;

                  private Date dateSea;
                  private int durSea;
                  public Patient patient;
                  public Nature nature;
                  public Medecin medecin;

                      Filière                   Epreuve                        Session             10/15
                  DI (CDS de 2 à 3)       Synthèse V1 (Correction)           Juillet 2016
                                           www.itlearning-settat.com

                                   Email: admission@itlearning-settat.com
                                                    Tél.:0661077812
   833   834   835   836   837   838   839   840   841   842   843