Why do we use polymorphism in Java?

Polymorphism allows us to perform a single action in different ways . In other words, polymorphism allows you to define one interface and have multiple implementations. The word “poly” means many and “morphs” means forms, So it means many forms.14 Ara 2021

Leave a Reply

Your email address will not be published. Required fields are marked *

Why do we use polymorphism in Java?

Polymorphism allows us to perform a single action in different ways . In other words, polymorphism allows you to define one interface and have multiple implementations. The word “poly” means many and “morphs” means forms, So it means many forms.14 Ara 2021

Leave a Reply

Your email address will not be published. Required fields are marked *