The word polymorphism comes from two Greek word poly means many, and morph means shape or type. So polymorphism can be defined as a word that can be displayed in different/many forms. But in the case of Java, it is an operator or the constructor or a method that can be shown in many forms.

#What is polymorphism in programming

Polymorphism is the capability of the method to do different things based on an object that it is acting upon. In other words, polymorphism allows you to define one interface and have multiple implementations.

For example, you have a cellphone for communication, the communication mode you choose could be anything like call, a text message, picture message, an mail, etc. So, our main goal is common, that is communication, but their approach is different. This is called Polymorphism.

#polymorphism #java #programming

Polymorphism in Java Example | Java Polymorphism Tutorial
3.00 GEEK