Example #1
0
        public static void Main()
        {
            ICarPrototype carPrototype = new Nissan();

            ICarPrototype nissanNismo = carPrototype.Clone();

            nissanNismo.SetEngine(EngineSize.OnePointFive);

            ICarPrototype NissanNavaro = carPrototype.Clone();

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