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);
 }
예제 #3
0
 public override void AddMilk(Milk m)
 {
     price += 5;
 }
예제 #4
0
 public abstract void AddMilk(Milk m);
예제 #5
0
 public abstract void MilkConcrete(Milk milk);