Polymorphism in JavaPolymorphism in Java

0 Comments

Polymorphism mean the condition of occurring in several different formsPolymorphism in Java has two types: Compile time polymorphism (static binding) and Runtime polymorphism (dynamic binding). Method overloading is an example of static polymorphism, while method overriding is an example of dynamic polymorphism. Polymorphism represents a IS-A relationship Consider a class