Пример #1
0
 public PepperoniPizza()
 {
     Name       = "Pepperoni Pizza";
     CrustTypes = new CrustTypes();
     Sizes      = new Sizes();
     Toppings   = new List <Topping>();
 }
Пример #2
0
 public CheesePizza()
 {
     Name       = "Cheese Pizza";
     CrustTypes = new CrustTypes();
     Sizes      = new Sizes();
     Toppings   = new List <Topping>();
 }
Пример #3
0
 public PepperoniPizza(Sizes size, CrustTypes crust)
 {
     AddName("Pepperoni Pizza");
     AddCrust(crust);
     AddSize(size);
     AddToppings();
     ComputePrice();
 }
Пример #4
0
 public CheesePizza(Sizes size, CrustTypes crust)
 {
     AddName("Cheese Pizza");
     AddCrust(crust);
     AddSize(size);
     AddToppings();
     ComputePrice();
 }
Пример #5
0
 public void AddCrust(CrustTypes crust)
 {
     CrustTypes = crust;
 }