public override int GetCost() { return(Coffee.GetCost() + 5); }
public CoffeeWithSugarDecorator(Coffee coffee) : base(coffee.Name + ",с сахором", coffee) { }
protected CoffeeDecorator(string name, Coffee coffee) : base(name) { Coffee = coffee; }
public CoffeeWithMilkDecorator(Coffee coffee) : base(coffee.Name + ",с молоком", coffee) { }
public CoffeeWithChocolateSyrupDecorator(Coffee coffee) : base(coffee.Name + ",с шоколадным сиропом", coffee) { }