Monday, 31 October 2016

Polymorphism

Polymorphism

Polymorphism means “many forms” (poly = many, morph = forms).
It is the ability of an object or method to take different forms and perform a single action in multiple ways.

In Java, polymorphism is categorized into two types:

  1. Compile-time Polymorphism (also called Static Polymorphism)

  2. Runtime Polymorphism (also called Dynamic Polymorphism)

Polymorphism in Java can be achieved through:



No comments:

Post a Comment

Java Development Kit (JDK) and Java Runtime Environment (JRE)

                  Java Development Kit (JDK) and Java Runtime Environment (JRE)  To download and install the Java Development Kit (  JDK ) ...