• Plant
• Has an instance variable, height
• Has a method, bloom, that returns void, has no inputs, and prints
"The plant is blooming"
• BlueberryBush
• Extends Plant
• Overrides bloom and prints "Blueberry bush produces a
blueberry"
• AppleTree
• Inherits from Plant
• Overrides bloom and prints "Apple tree produces an apple"
• Rose
• Inherits from Plant
• Overrides bloom and prints "The rose has bloomed"
• Garden
• Has a main method
• In the main method, creates instances of the above classes
and stores them in an ArrayList
• Iterates through the ArrayList and calls bloom
After creating the above classes, modify your Plant class, and the
bloom() method in the Plant class, to be abstract. Modify your driver to
accommodate this change.