예제 #1
0
 public bool debiter(MAD somme)
 {
     if (somme.estPositif() && solde.estPositif() && plafond.supPLAFOND(somme))
     {
         this.solde -= somme;
         return(true);
     }
     return(false);
 }
예제 #2
0
 public bool crediter(MAD somme)
 {
     if (somme.estPositif())
     {
         this.solde += somme;
         return(true);
     }
     return(false);
 }