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