Beispiel #1
0
 public ÇilekDecorator(StarbucksUrun baseComponent)
     : base(baseComponent)
 {
     this.Name  = "Çilekli pasta";
     this.Price = baseComponent.Price + 2.0;
 }
Beispiel #2
0
 private static void PrintProductDetails(StarbucksUrun product)
 {
     Console.WriteLine(); // some whitespace for readability
     Console.WriteLine("Item: {0}, Price: {1}", product.Name, product.Price);
 }
 public SütDecorator(StarbucksUrun baseComponent)
     : base(baseComponent)
 {
     this.Name  = "Sütlü Kahve";
     this.Price = baseComponent.Price + 1.0;
 }
Beispiel #4
0
 protected Decorator(StarbucksUrun baseComponent)
 {
     this.baseComponent = baseComponent;
 }
Beispiel #5
0
 public KremaDecorator(StarbucksUrun baseComponent)
     : base(baseComponent)
 {
     this.Name  = "Kremalý kahve";
     this.Price = baseComponent.Price + 4.0;
 }