public static void Main()
        {
            ICarPrototype carPrototype = new Nissan();

            ICarPrototype nissanNismo = carPrototype.Clone();

            nissanNismo.SetEngine(EngineSize.OnePointFive);

            ICarPrototype NissanNavaro = carPrototype.Clone();

            NissanNavaro.SetEngine(EngineSize.TwoPointFive);
        }
Beispiel #2
0
 public Client(ICarPrototype car)
 {
     _car = car;
 }