A simple and easy program to understand the concept of runtime polymorphism, compile time polymorpism,overloading, overridding, downcasting, upcasting and Interface.
-
Updated
Jun 25, 2021 - Java
A simple and easy program to understand the concept of runtime polymorphism, compile time polymorpism,overloading, overridding, downcasting, upcasting and Interface.
Solving real-life problem using polymorphic hierarchy.
Compile-time polymorphism, also known as method overloading, is a feature of object-oriented programming languages such as Java that allows you to define multiple methods with the same name in the same class. The compiler determines which version of the method to call based on the number, types, and order of the arguments passed to it.
Add a description, image, and links to the compile-time-polymorphism topic page so that developers can more easily learn about it.
To associate your repository with the compile-time-polymorphism topic, visit your repo's landing page and select "manage topics."