In this tutorial, you will learn about Polymorphism in Java, and what overloading and overriding mean, with examples.
Polymorphism in Java
In Greek language, Poly means many and morphs means forms. Therefore Polymorphism translates to many forms. Precisely, Polymorphism is a condition of occurring in several different forms. Polymorphism in Java can occur in two ways:
- Overloading
- Overriding
Following picture gives a basic difference between overloading and overriding in Java.
