Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Client client;

            client = new ClientComptant();
            client.nouvelleCommande(2000.0);
            client.nouvelleCommande(10000.0);
            client = new ClientCredit();
            client.nouvelleCommande(2000.0);
            client.nouvelleCommande(10000.0);
        }
Ejemplo n.º 2
0
        public void LoadFactoryMethod()
        {
            Client client;

            client = new ClientComptant();
            client.nouvelleCommande(2000.0);
            client.nouvelleCommande(10000.0);
            client = new ClientCredit();
            client.nouvelleCommande(2000.0);
            client.nouvelleCommande(10000.0);
        }
Ejemplo n.º 3
0
        public void LoadFactory()
        {
            Client client;

            client = new ClientComptant();
            client.NouvelleCommande(1500);
            client.NouvelleCommande(5000);

            client = new ClientCredit();
            client.NouvelleCommande(1500);
            client.NouvelleCommande(6000);
        }
Ejemplo n.º 4
0
        public void LoadFactoryMethod()
        {
            Client client;

            client = new ClientComptant();
            client.NouvelleCommande(2000.0);
            client.NouvelleCommande(10000.0);

            client = new ClientCredit();
            client.NouvelleCommande(2000.0);
            client.NouvelleCommande(10000.0);

            Console.ReadLine();
        }
Ejemplo n.º 5
0
        static void Main(string[] args)
        {
            Client client;

            Console.WriteLine("Voulez-vous payez Comptant (1) ou à Crédit (2) :");
            string choix = Console.ReadLine();

            if (choix == "1")
            {
                client = new ClientComptant();
            }
            else
            {
                client = new ClientCredit();
            }

            client.nouvelleCommande(2000.0);
            client.nouvelleCommande(10000.0);
        }