Question: c++ question pls answer asap :) QUESTION 1 [15 Marks] NutritionFact - serving Size double Sellable Food price: double -expiry.string Shirt IceCream size string flavour

c++ question pls answer asap :)
c++ question pls answer asap :) QUESTION 1 [15 Marks] NutritionFact -
serving Size double Sellable Food price: double -expiry.string Shirt IceCream size string

QUESTION 1 [15 Marks] NutritionFact - serving Size double Sellable Food price: double -expiry.string Shirt IceCream size string flavour string Figure C-1 Consider the class diagram in Figure C-I. Based on the class diagram answer the following questions: 2. 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 answeras No such case, 1. Name TWO (2) pairs of classes that do not fom any relationship to each other. ii. Name a pair of classes that form an aggregation relationship ii. Nume a pair of classes that form a single inheritance relationship [2 marks) Sellable D Food price: double expliy string 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. 1. Name TWO (2) pairs of classes that do not form any relationship to each other. ii. Name a pair of classes that form an aggregation relationship. ii. Name a pair of classes that form a single inheritance relationship, (7 marks) b. Write a code segment in C++ that implements these THREE (3) classes Sellable, Food, and IceCream. Your implementation does not need to include any methods including constructors. Assume that the class NutritionFace has been implemented correctly 8 marks) TITELLESTIMET 1103 AM ENG

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!