public static IEngine Create(EngineFactory.Type type, int size) { if (type == Type.Standard) { return new StandardEngine(size); } else { return new TurboEngine(size); } }
public static IEngine Create(int size, bool turbo) { return(EngineFactory.Create (turbo ? Type.Turbo : Type.Standard, size)); }