Question: Explain polymorphism in Java.Answer: Polymorphism allows objects of different types to be treated as objects of a common type. It can be achieved through method overloading and method overriding.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users: