//revaloriser l'epargne
        public override void deposer(double mt)
        {
            transaction tt = new transaction(new DateTime(), 0, mt);

            addTransaction(tt);
            this.soldeCompte += mt + mt * this.soldeepargne;
        }
Beispiel #2
0
        public void retirer(double mt)
        {
            transaction tt = new transaction(new DateTime(), 1, mt);

            addTransaction(tt);
            if (this.soldeCompte + this.decouvert > mt)
            {
                this.soldeCompte -= mt;
            }
        }
 //abstract public String toString();
 public void addTransaction(transaction tt)
 {
     transaction.Add(tt);
 }