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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 17 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply