Esempio n. 1
0
 public Client(ICar factory)
 {
     place   = factory.ShowPlace();
     carcass = factory.CreateCarcass();
     power   = factory.CreatePower();
     fuel    = factory.CreateFuel();
 }
Esempio n. 2
0
        public Client()
        {
            ICar factory = Singleton.getInstance().Factory;

            place   = factory.ShowPlace();
            carcass = factory.CreateCarcass();
            power   = factory.CreatePower();
            fuel    = factory.CreateFuel();
        }