Investissement.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace CG67.FicheCollege.Domaine
  5. {
  6. [Serializable]
  7. public class Investissement
  8. {
  9. /// <summary>
  10. /// Type de l'investissement.
  11. /// </summary>
  12. private string mType;
  13. /// <summary>
  14. /// Montant de l'investissement.
  15. /// </summary>
  16. private double mMontant;
  17. /// <summary>
  18. /// Commentaire sur l'investissement.
  19. /// </summary>
  20. private string mCommentaire;
  21. /// <summary>
  22. /// Obtient ou définit le type de l'investissement.
  23. /// </summary>
  24. public string Type
  25. {
  26. get { return mType; }
  27. set { mType = value; }
  28. }
  29. /// <summary>
  30. /// Obtient ou définit le montant de l'investissement.
  31. /// </summary>
  32. public double Montant
  33. {
  34. get { return mMontant; }
  35. set { mMontant = value; }
  36. }
  37. /// <summary>
  38. /// Obtient ou définit le commentaire associé à l'investissement.
  39. /// </summary>
  40. public string Commentaire
  41. {
  42. get { return mCommentaire; }
  43. set { mCommentaire = value; }
  44. }
  45. public Investissement(string type, double montant, string commentaire)
  46. {
  47. this.mType = type;
  48. this.mMontant = montant;
  49. this.mCommentaire = commentaire;
  50. }
  51. }
  52. }