Hi Nikole,
Welcome to CodeRanch!
Nikole Six wrote:So, all flavors will belong to recipes, but not all recipes will have the same number of flavors associated with them
Perfect! You almost figured it out.
When we say flavors belong to recipes, what we say is:
Recipe HAS-A Flavor (of course, it can be 0 or more than 1).
But, if we want to make Flavor as a subclass of Recipe, then it will make sense only when Flavor IS-A Recipe (which is not the case here).
I hope this helps.
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)