Exemple #1
0
 protected MilkDecorator(Milk milk, float cost)
 {
     this.milk = milk;
     this.cost = cost;
 }
 public StrawberryDeco(Milk milk, float cost) : base(milk, cost)
 {
     name = "Strawberry";
 }
Exemple #3
0
 public PotatoDeco(Milk milk, float cost) : base(milk, cost)
 {
     name = "Potato";
 }