Question: undefined NutritionFact serving Size: double Sellable Food expiry : string price: double A IceCream Shirt size string - flavour string Figure C-1 Consider the class
undefined
NutritionFact serving Size: double Sellable Food expiry : string price: double A IceCream Shirt size string - flavour string Figure C-1 Consider the class diagram in Figure C-1. Based on the class diagram answer the following questions: a. Determine the pairs of classes or a group of classes that form the relationship according to the questions below. If there is no such relationship in the class diagram, then write your answer as No such case. i. Name TWO(2) pairs of classes that form a composition relationship. ii. Name the classes that form a multiple inheritance relationship iii. Name a pair of classes that form an aggregation relationship. (7 marks) b. Write a code segment in that implements these THREE (3) classes: Sellable. Food, and Shirt Assume that the class NutritionFact has been implemented correctly. Your implementation does not need to include any methods including Constructors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
