Pizza
Interfaces, Classes and Traits
- Valued
- Any class implementing this interface has an associated price.
- Series
- Style
- Any class implementing this interface has an associated price.
- Sauce
- Any class implementing this interface has an associated price.
- Topping
- Any class implementing this interface has an associated price.
- PizzaComponentFactory
- StyleFactory
- SauceFactory
- ToppingFactory
- ItalianStyle
- AmericanStyle
- TomatoSauce
- CheeseTopping
- ExampleNestedTrait
- HasPrice
- A single item with a value
Table of Contents
- DEFAULT_SIZE = SIZE_20CM
- SIZE_10CM = 10
- SIZE_15CM = 15
- SIZE_20CM = 20
- SIZE_5CM = 5
- VAT_HIGH = 21
- The high VAT percentage.
- VAT_LOW = 6
- The low VAT percentage.
Constants
DEFAULT_SIZE
public
int
DEFAULT_SIZE
= SIZE_20CM
SIZE_5CM A 5 centimeter pizza size.
SIZE_10CM
public
int
SIZE_10CM
= 10
SIZE_5CM A 5 centimeter pizza size.
SIZE_15CM
public
int
SIZE_15CM
= 15
SIZE_5CM A 5 centimeter pizza size.
SIZE_20CM
public
int
SIZE_20CM
= 20
SIZE_5CM A 5 centimeter pizza size.
SIZE_5CM
public
int
SIZE_5CM
= 5
SIZE_5CM A 5 centimeter pizza size.
VAT_HIGH
The high VAT percentage.
public
int
VAT_HIGH
= 21
This describes the VAT percentage for all non-food items.
VAT_LOW
The low VAT percentage.
public
int
VAT_LOW
= 6
This describes the VAT percentage for all non-food items.