| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace CG67.FicheCollege.Domaine
- {
- [Serializable]
- public class Investissement
- {
- /// <summary>
- /// Type de l'investissement.
- /// </summary>
- private string mType;
- /// <summary>
- /// Montant de l'investissement.
- /// </summary>
- private double mMontant;
- /// <summary>
- /// Commentaire sur l'investissement.
- /// </summary>
- private string mCommentaire;
- /// <summary>
- /// Obtient ou définit le type de l'investissement.
- /// </summary>
- public string Type
- {
- get { return mType; }
- set { mType = value; }
- }
- /// <summary>
- /// Obtient ou définit le montant de l'investissement.
- /// </summary>
- public double Montant
- {
- get { return mMontant; }
- set { mMontant = value; }
- }
- /// <summary>
- /// Obtient ou définit le commentaire associé à l'investissement.
- /// </summary>
- 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;
- }
- }
- }
|