// this is the CreateProductA function public override AbstractSword createSword(string mater) { AbstractSword sword = new LongSword(mater); sword.sharpenBlade(); return(sword); }
public Weapon produceWeapon() { LongSword product = new LongSword(); product.Atk = 10; product.Range = 1; return(product); }