Page 488 - IT2
P. 488
{
return Produit_acheté.pPrixProduit * Quantité_achetée;
}
public new string ToString()
{
return Produit_acheté.pNomProduit + " " + Quantité_achetée + " " + Date_achat + " " + MontantAchat() + ".";
}
}
}
Classe "Client"
using System;
using System.Collections.Generic;
namespace Société_informatique
{
public class Client
{
private uint IdClient;
private string NomClient;
private string PrénomClient;
private string AdresseClient;
private Ville ville;
private string TélClient;
private string EMailClient;
private List<Achat> Achats;
private static uint auto;
public Client(string NomClient, string PrénomClient, string AdresseClient, Ville ville, string TélClient, string
EmailClient)
{
this.NomClient = NomClient;
this.PrénomClient = PrénomClient;
this.AdresseClient = AdresseClient;
this.ville = ville;
this.TélClient = TélClient;
this.EMailClient = EmailClient;
auto++;
IdClient = auto;
Achats = new List<Achat>();
}
public uint pIdClient
{
get { return IdClient; }
}
public string pNomClient
{
get { return NomClient; }
set { NomClient = value; }
}
public string pPrénomClient
{
get { return PrénomClient; }
set { PrénomClient = value; }
}
public string pAdresseClient
{
get { return AdresseClient; }
set { AdresseClient = value; }
}
public Ville pville
{
get { return ville; }
set { ville = value; }
}
Filière Epreuve Session 11/13
TDI Synthèse V1(Correction) Juillet 2014

