Example #1
0
        // méthode publique Créditer
        #region Créditer
        public void Créditer(decimal montant)
        {
            //puis ajoute l'objet operation à la liste listeOperations (méthode Add)
            Opération operation = new Opération(Mouvement.Credit, montant);

            listeOperations.Add(operation);
        }
Example #2
0
        //méthode publique Debiter() qui ne retourne rien (Void)
        public void Debiter(decimal montant)
        {
            Opération operation = new Opération(Mouvement.Debit, montant);

            listeOperations.Add(operation);
        }