Example #1
0
 public override int GetCost()
 {
     return(Cake.GetCost() - 1);
 }
Example #2
0
 public ThereCake(Cake p) : base(p.Name + ", eat there", p)
 {
 }
Example #3
0
 public DeliveryCake(Cake p) : base(p.Name + ", with delivery", p)
 {
 }
Example #4
0
 public CakeDecorator(string n, Cake Cake) : base(n)
 {
     this.Cake = Cake;
 }
Example #5
0
 public ThereCake(Cake p)
     : base(p.Name + ", есть на месте", p)
 {
 }
Example #6
0
 public DeliveryCake(Cake p)
     : base(p.Name + ", с доставкой", p)
 {
 }