Sunday , December 11 2016
Home / JAVA / Java program to implement polymorphism

Java program to implement polymorphism

Java program to implement polymorphism: Polymorphism is a technique in java with which you can create multiple functions with same name but each having different arguments.

It means that we have a program in which we have several functions with same name but have different arguments which are easy to use as if we put different names to the functions than it is difficult to remember which function we want to call.

So for easy maintenance and use we use this technique and call functions with same name and pass different parameters accordingly.

This method is also called overloading.

 

 OUTPUT:

polymorphism

 

Tags: java program for polymorphism, java program to implement polymorpshim

Also See:   java program for eliminating the multiple characters occurring in a string using string buffer functions

Check Also

Program for Fascinating Number in JAVA

Fascinating Number :- The number of 3 digit or more, when we multiplied that number ...

Leave a Reply

Your email address will not be published. Required fields are marked *

Preventing spam * Time limit is exhausted. Please reload the CAPTCHA.