4 15 Points Implement Class Menumanager Menumanager Object Arraylist Type Dishes Construct Q37083918

4. [15 points]Implement the class MenuManager. A MenuManagerobject has an ArrayList of each of the type of dishes.

MenuManager entrees : ArrayList<Entree> sides: ArrayList<Side> salads : ArrayList<Salad> desserts: ArrayList<Dessert:> + Menu

The constructor, as you can see in thefollowing figure, receives only one fileName. You can not use theold methods in FileManager because now, all dishes are in a singlefile. Read this file using the method readItems of theclass FileManager and fill a single ArrayList of MenuItem. Now weneed to separate the single ArrayList containing MenuItem objectsinto the four ArrayList of different types. To solve this, createthe four

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.