Which of the following best demonstrates runtime polymorphism in Java?

Last Updated :
Discuss
Comments

Which of the following best demonstrates runtime polymorphism in Java?

Calling an overloaded method from the same class

Overriding a method in a subclass and calling it through a superclass reference

Using static methods with the same name in parent and child classes

Accessing private methods from subclasses

Share your thoughts in the comments