Пример #1
0
        // this is the CreateProductA function
        public override AbstractSword createSword(string mater)
        {
            AbstractSword sword = new LongSword(mater);

            sword.sharpenBlade();
            return(sword);
        }
Пример #2
0
        public Weapon produceWeapon()
        {
            LongSword product = new LongSword();

            product.Atk   = 10;
            product.Range = 1;
            return(product);
        }