Beispiel #1
0
        public void LoadFactory()
        {
            Client client;

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

            client = new ClientCredit();
            client.NouvelleCommande(1500);
            client.NouvelleCommande(6000);
        }
        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();
        }