Class Snack
java.lang.Object
Item
Snack
- Direct Known Subclasses:
PerishableItem
(The Basic Products) These classes extend Item
Snack adds a specific boolean property to check if it's vegan,
while Beverage adds a boolean to check if it is cold
They both override displayDetails() to print their specific information
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Snack
-
-
Method Details
-
displayDetails
- Specified by:
displayDetailsin classItem
-