Page 1 of 1

For this problem you need to utilize the food class from part 2, and add two subclasses (Liquid and Solid). The UML diag

Posted: Tue Jul 12, 2022 8:17 am
by answerhappygod
For This Problem You Need To Utilize The Food Class From Part 2 And Add Two Subclasses Liquid And Solid The Uml Diag 1
For This Problem You Need To Utilize The Food Class From Part 2 And Add Two Subclasses Liquid And Solid The Uml Diag 1 (63.56 KiB) Viewed 18 times
For this problem you need to utilize the food class from part 2, and add two subclasses (Liquid and Solid). The UML diagram for each class is below: Food String strName int - intCalories double-dblWeight String - strDescription Food() Food(strName, intCalories, dblWeight, strDescription) getName() - String setName(String) - void getCalories() - int setCalories(int) - void getWeight() - double setWeight(double) - void getDescription() - String set Description(String) - void toString() - String
Liquid int -intFluidOunces double-dblCurrentTemperature double - dblFreezingTemperature double-dblBoiling Temperature Liquid() Liquid (intFluidOunces, dblCurrentTemperature, dblFreezingTemperature,dblBoilingTemperature) isBoiling() - boolean isFrozen() - boolean getFluidOunces() - int setFluid Ounces(int) - void setCurrentTemperature(double) void toString() - String Solid double-dblWeightInKilograms String - strTexture boolean - isAllergen String - strTypeOfCuisine Solid() Solid(dblWeightInKilograms, strTexture, isAllergen, strTypeOfCuisine) getWeightInKilograms() - double setWeightInKilograms(double) - void getTexture() - String isAllergen() - boolean getTypeOfCuisine() toString() - String