Polymorphism is the ability to take many forms. Method overriding is runtime polymorphism.
My questions are:
Is there anything like static polymor
Polymorphism
Static Binding/Early binding/Compile time binding - Method overloading.(in same class) Dynamic binding/Runtime binding/Method overriding.(in different classes.)
Polymorphism in java
It just has two types, Method overloading
and Method overriding
, as soon as the method overriding
turn into Method Hiding
, it loses it's polymorphism features.
refer to below question from stackoverflow.
1.) Question1
2.) Question2