Page 505 - IT2
P. 505

}

                            Classe "Système"

    using System;

    public class Système
    {
        private string RéfSystème;
        private string DésignationSystème;
        private float PrixSystème;
        private Développeur développeur;

        public Système(string RéfSystème, string DésignationSystème, float PrixSystème, Développeur développeur)
        {
            this.RéfSystème = RéfSystème;
            this.DésignationSystème = DésignationSystème;
            this.PrixSystème = PrixSystème;
            this.développeur = développeur;
        }

        public string pRéfSystème
        {
            get { return RéfSystème; }
            set { RéfSystème = value; }
        }

        public string pDésignationSystème
        {
            get { return DésignationSystème; }
            set { DésignationSystème = value; }
        }

        public float pPrixSystème
        {
            get { return PrixSystème; }
            set { PrixSystème = value; }
        }

        public Développeur pdéveloppeur
        {
            get { return développeur; }
            set { développeur = value; }
        }

        public new string ToString()
        {
     return développeur.pRaisonSocialeDéveloppeur + " " + RéfSystème + " " + DésignationSystème + " " + PrixSystème + ".";
        }}

                            Classe "Composant"


    using System;

    public class Composant
    {
        private string RéfComposant;
        private string DésignationComposant;
        private float PrixComposant;
        private Constructeur constructeur;

        public Composant(string RéfComposant, string DésignationComposant, float PrixComposant, Constructeur constructeur)
        {
            this.RéfComposant = RéfComposant;
            this.DésignationComposant = DésignationComposant;
            this.PrixComposant = PrixComposant;
            this.constructeur = constructeur;
        }

        public string pRéfComposant
        {
            get { return RéfComposant; }
            set { RéfComposant = value; }

                     Filière                    Epreuve                        Session              8/13
                      TDI                 Synthèse V2(Correction)            Juillet 2014
   500   501   502   503   504   505   506   507   508   509   510