public ÇilekDecorator(StarbucksUrun baseComponent) : base(baseComponent) { this.Name = "Çilekli pasta"; this.Price = baseComponent.Price + 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; }
protected Decorator(StarbucksUrun baseComponent) { this.baseComponent = baseComponent; }
public KremaDecorator(StarbucksUrun baseComponent) : base(baseComponent) { this.Name = "Kremalý kahve"; this.Price = baseComponent.Price + 4.0; }