Question: USE JAVA... Please HELP I'm stuck ================================================================================================ 1)- Create a specialized version of Insect called Flyinglnsect which have the ability to ly. 2)- Create a
USE JAVA...
Please HELP I'm stuck
================================================================================================



1)- Create a specialized version of Insect called Flyinglnsect which have the ability to ly. 2)- Create a specialized version of Insect called Butterfly which has a state called cocoon and the ability of metamorphosis cocoon is an obiect of class Cocoon which contains only a toString method which returns the string "Cocoon" (same as class Stinger in Listing C) metamorphosis contains a println which utilizes cocoon (same as protectHive in Listing C) 3)- Refactor the Bumblebee and Grasshopper classes into the new hierarchy: honeybees and butterflies can fly while grasshoppers cannot 4)- Modify the BugCollection main program to instantiate a Butterfly object and to call all methods of all Insect subclasses
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
