+ 4

What is runtime polymorphism?

3rd Mar 2017, 6:50 PM
Shamsul Arifin
Shamsul Arifin - avatar
2 Answers
+ 8
Check out this article: http://beginnersbook.com/2013/04/runtime-compile-time-polymorphism/ in short run-time is Method Overriding as which method is called is decided during program execution. Compile time is Method overloding as which method is called is decided by the compiler based on the arguments you are calling it with. :D :D :D
3rd Mar 2017, 7:49 PM
Nikolay Nachev
Nikolay Nachev - avatar
+ 4
run time polymorphism is simply method overriding, where the method is declared twice in the parent and child class. the method called in the main class will execute the method in the child class is the one executed and not that of the parent class in an inheritance structure.
4th Mar 2017, 6:39 AM
valentine
valentine - avatar