Polymorphism is the ability of an object to take on many forms in Java. Learn how to use polymorphism with method overloading, method overriding, interface and multiple inheritance, and see code examples. Polymorphism means "many forms" and occurs when we have classes that are related by inheritance and perform different tasks. Learn how to use polymorphism with the animalSound() method and why it is useful for code reusability. 1. What Is Polymorphism? Polymorphism means ‘many forms’. In OOP, polymorphism means a type can point to different object at different time. In other words, the actual object to which a reference type refers, can be determined at runtime. In Java, polymorphism is based on inheritance and overriding. So if you absorbed my lessons about inheritance and overriding the following tutorials: This article helps you to understand java polymorphism, what is polymorphism, types and features of polymorphism, and compile time vs runtime polymorphism. So, read on and learn more!

Available

Product reviews

Rating 4.5 out of 5. 8,008 reviews.

Characteristics assessment

Cost-benefit

Rating 4.5 out of 10 5

Comfortable

Rating 4.3 out of 5

It's light

Rating 4.3 out of 5

Quality of materials

Rating 4.1 of 5

Easy to assemble

Assessment 4 of 5