New course! Every coder should learn Generative AI!
Try a free lesson+ 1
What is Polymorphism in java?
2 Answers
+ 1
the ability of parent class to hold child class object.
For interface the ability to hold its implemented class object.
It's nothing but polymorphism.
0
Thank you Sarath