// 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); }
//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); }