write a java program that input 5 animals (example: dog,cat,zebra,snake,lion) and sort it in descending order by the use of INSERTION TECHNIQUE
Answers
Answered by
0
Explanation:
In Java, we use the extends keyword to inherit from a class. Here, we have inherited the Dog class from the Animal class. The Animal is the superclass (parent class or base class), and the Dog is a subclass (child class or derived class). The subclass inherits the fields and methods of the superclas
Similar questions