using System; using System.Collections.Generic; using System.Text; namespace CG67.FicheCollege.Domaine { [Serializable] public class Investissement { /// /// Type de l'investissement. /// private string mType; /// /// Montant de l'investissement. /// private double mMontant; /// /// Commentaire sur l'investissement. /// private string mCommentaire; /// /// Obtient ou définit le type de l'investissement. /// public string Type { get { return mType; } set { mType = value; } } /// /// Obtient ou définit le montant de l'investissement. /// public double Montant { get { return mMontant; } set { mMontant = value; } } /// /// Obtient ou définit le commentaire associé à l'investissement. /// public string Commentaire { get { return mCommentaire; } set { mCommentaire = value; } } public Investissement(string type, double montant, string commentaire) { this.mType = type; this.mMontant = montant; this.mCommentaire = commentaire; } } }