What is runtime polymorphism ? How is it implemented in java ? Give suitable example.
Answers
Answered by
0
Hi
Here's your answer
Polymorphism is the capability of an action or method to do different things based on the object that it is acting upon. In other words, polymorphism allows you define one interface and have multiple implementation. This is one of the basic principles of object oriented programming.
The method overriding is an example of runtime polymorphism. You can have a method in subclass overrides the method in its super classes with the same name and signature. Java virtual machine determines the proper method to call at the runtime, not at the compile time.
hope it help you
mark as the brainliest
Similar questions