Polymorphism in Java.

In Java, polymorphism means having more than one forms. We can define polymorphism as the ability of a message to be displayed in more than one form.

Code :