Exemplo n.º 1
0
        public Client()
        {
            ThunderStormCarPrototype thunderPrototype = new ThunderStormCarPrototype();

            PrototypeCar thunderNew = thunderPrototype.clone();

            thunderNew.setBuyCost(17000.00);
            PrototypeCar thunderOld = thunderPrototype.clone();

            thunderOld.setBuyCost(15000.00);

            Console.WriteLine(thunderNew.Show());
            Console.WriteLine(thunderOld.Show());
        }
 public ThunderStormCarPrototype(ThunderStormCarPrototype carPrototype)
 {
     buyCost = carPrototype.buyCost;
 }