1.1 Two protected variable: icecream and price
1.2 Price is 5 bath per 1 ice-cream
1.3 MainInventory () is a constructor to display text on screen as
“Calculate total amount order for Icecream factory”
“************************************************”
1.4 getAmount() is a normal method to get the input value of amount of the ice-cream from
the keyboard and assign the value to “icecream” variable.
display text Enter Icecream amount [iceacream amount as we
input]
1.5 calculateOrderAmount( )is a normal method. There is no any code in this method body
(no any code in the { } of this method).