namespace Model { public class Compte { public string Nom { get; private set; } public double Solde { get; private set; } public List LesOpe { get; private set; } = new List(); public List LesPla { get; private set; } = new List(); public List LesEch { get; private set; } = new List(); public Compte(string nom, double solde) { Nom = nom; Solde = solde; LesOpe = new List(); LesPla = new List(); LesEch = new List(); } public Compte(string nom, double solde, List lesOpe) { Nom = nom; Solde = solde; LesOpe = lesOpe; } public Compte(string nom, double solde, List lesOpe, List lesPla) { Nom = nom; Solde = solde; LesOpe = lesOpe; LesPla = lesPla; } public Compte(string nom, double solde, List lesOpe, List lesPla, List lesEch) { Nom = nom; Solde = solde; LesOpe = lesOpe; LesPla = lesPla; LesEch = lesEch; } public void modifierSolde(double s) { Solde = s; } } }