Polymorphism is derived from the chains of inheritance in Java. Inheritance shows a relationship between two or more classes in which the parent class (also called the superclass) passes attributes and methods to the child class (also called the subclass).
You have three classes: Insect, Termite, and Bee;
In inheritance the more broad term is always the Parent class, so in this case the Parent class is Insect; because insect can apply to any number of different types of insect.
The two child classes (Termite and Bee) inherit attributes and methods from the Parent class (Insect).
Output of testInsects:
The bee flys away
The termite crawls away