Tag: Polymorphism
-
Polymorphism and method overloading
What is polymorphism? 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. Types of polymorphism: In Java polymorphism is mainly divided into two types: Compile-time…