Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need help NutritionFact - serving Size double Sellable Food price double expiry string Shirt IceCream size string flavour string Figure C-1 Consider the class

i need help image text in transcribed

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-1. Based on the class diagram answer the following questions: 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. n. 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) elasses: Sellable. Tood, and IceCream. Your implementation does not need to include any methods including constructors. Assume that the class BlutritionFact has been implemented correctly (8 marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions