add a new subclass of Jeroo called FlowerCollector. add a method stub for a method called collectFlowers()
Question:
add a new subclass of Jeroo called FlowerCollector.
add a method stub for a method called collectFlowers() in FlowerCollector. This method does not return any value, and eventually will be implemented so that it walks the entire island and collects all the flowers.
Add an import for java.util.* at the top of your FlowerCollector class.
Add a private field that refers to a list of Flower objects. Call your field basket, to represent the basket of flowers the jeroo is carrying.
Add a line to the jeroo's constructor that initializes the field to a newly created ArrayList (don't forget the type parameter--refer back to Reading 08 if you need a refresher).
Add a getter method called getBasket() that returns the list of flowers.
Accounting Principles Volume 2
ISBN: 978-1119502555
8th Canadian Edition
Authors: Jerry J. Weygandt, Donald E. Kieso, Paul D. Kimmel, Barbara Trenholm, Valerie Warren, Lori Novak