Question: Can you draw a UML Model after using generalization to improve the model? Below is a model for food products. A FoodProduct has multiple Ingredients,
Can you draw a UML Model after using generalization to improve the model?
Below is a model for food products. A FoodProduct has multiple Ingredients, multiple NutritionFacts, and possible Allergens listed. For example, the Promax energy bar is made from protein blend, soy protein crisps, casein, and other ingredients. The wrapper lists nutrition facts (amounts) for various nutrition descriptors (total fat, cholesterol, sodium, and protein). There is also a warning for customers allergie to mille and nuts. The model has a flaw - a FoodProduct may not only contain Ingredients but it may also contain lesser FoodProducts. Use generalization to improve the model
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
