Add a concept of Aisles to our grocery store. A grocery store contains some number of aisles. An aisle contains some number of food items. Also, we know how many aisles are in our store ahead of time, but we don’t know how many items are in each aisle. Have fun with it – there are many different solutions.
Pay
particular attention to how you use toString, constructors, getters and setters
at each level.
Note
- GroceryStore is like the tester class here
Try
to code this up – we’ll go over one solution on Wednesday