Example #1
0
 public override string Description()
 {
     return(Pizza.Description() + " + Extra Tomato & Onion");
 }
Example #2
0
    public static void RunDecorator()
    {
      IPizza orderedPizza = new Pizza("Dominos Margareta Large (VEG)");
      orderedPizza = new ExtraSoya(orderedPizza);
      orderedPizza = new ExtraCheese(orderedPizza);

      Console.WriteLine(orderedPizza.Description());
      Console.WriteLine("Total Cost = " + orderedPizza.Cost);
    }
Example #3
0
 public override string Description()
 {
     return(Pizza.Description() + " + Extra Cheese");
 }