//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;
        }
Пример #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;
            }
        }
Пример #3
0
 //abstract public String toString();
 public void addTransaction(transaction tt)
 {
     transaction.Add(tt);
 }