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