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