1: Create a enum PizzaType, which has the following entries: PIZZA_TYPE_PLAIN, PIZZA_TYPE_PEPPERONI, PIZZA_TYPE_SAUSAGE, PIZZA_TYPE_VEGGIE
1: Create a enum PizzaType, which has the following entries:
PIZZA_TYPE_PLAIN, PIZZA_TYPE_PEPPERONI, PIZZA_TYPE_SAUSAGE, PIZZA_TYPE_VEGGIE
2:
Create a class PizzaSalesBarChart, which inherits from StoreSalesBarChart.
Create a addPizzaSales(enum PizzaType) method. Return different value for different types of pizza.
Create it own version of StoreSalesBarChart setDailySales(String salesName). This method should create a PizzaSalesBarChart instance, generate a random pizza type value 10 times and call addPizzaSales for each pizza type value, then return the PizzaSalesBarChart instance.
In JoePizzaShop's main method, instead of calling "StoreSalesBarChart.setDailySales(salesName)", call " PizzaSalesBarChart .setDailySales(salesName)" and see what happens.

Trending now
This is a popular solution!
Step by step
Solved in 3 steps









