public override void MilkConcrete(Milk milk)
 {
     product.CurentAccountantprice = 19.40;
     product.NewAccountantprice    = product.CurentAccountantprice * 1.20;
     Console.WriteLine("{0} {1}'s new accoutant price: {2:C}",
                       product.GetType().Name, product.Name = "Dana",
                       product.NewAccountantprice);
 }
 public override void MilkConcrete(Milk milk)
 {
     product.CurentImpostprice = 9.10;
     product.NewImpostprice    = product.CurentImpostprice * 1.10;
     Console.WriteLine("{0} {1}'s new impost price: {2:C}",
                       product.GetType().Name, product.Name = "Dana",
                       product.NewImpostprice);
 }
Example #3
0
 public override void AddMilk(Milk m)
 {
     price += 5;
 }
Example #4
0
 public abstract void AddMilk(Milk m);
 public abstract void MilkConcrete(Milk milk);