Page 1 of 1

1 . A Food class has at least the following state: ●A name. ●A number of servings. Assume name is “Cookies” and number o

Posted: Tue Apr 12, 2022 10:24 am
by answerhappygod
1 . A Food class has at least the following state:
●A name.
●A number of servings.
Assume name is “Cookies” and number of servings is 4.
Make sure to include a toString() method that returns a string
similar to "4 servings of Cookies"