Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 1 2 Suppose you wanted to abstract Plate and Tray further, which of the following ideas would make the most sense? Creating two new
Question
Suppose you wanted to abstract Plate and Tray further, which of the following ideas would make the most sense?
Creating two new classes, one that will be a subclass of Plate and the other a subclass of Tray and implementing the item limiting within them
Creating a class
FoodCarrier th
that inherits from both
and
Creating two new classes, one that will be a parent class of Plate and the other a parent class of Tray and implementing the item limiting within them
Creating a class FoodCarrier that is a parent class for both Plate and Tray
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started