This repository has been archived on 2022-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
patterns/factorymethod/pizzafactorymethod/chicagostyleveggiepizza.d

25 lines
583 B
D

module factorymethod.pizzafactorymethod.chicagostyleveggiepizza;
import factorymethod.pizzafactorymethod.pizza;
import std.stdio : writeln;
class ChicagoStyleVeggiePizza : Pizza
{
this()
{
name = "Chicago Deep Dish Veggie Pizza";
dough = "Extra Thick Crust Dough";
sauce = "Plum Tomato Sauce";
toppings ~= "Shredded Mozzarella Cheese";
toppings ~= "Black Olives";
toppings ~= "Spinach";
toppings ~= "Eggplant";
}
override void cut()
{
writeln("Cutting the pizza into square slices");
}
}