Question d’entretien chez Infosys

what is polymorphism in Java

Réponse à la question d'entretien

Utilisateur anonyme

24 mars 2022

Polymorphism means "many forms", and it occurs when we have many classes that are related to each other by inheritance. Inheritance lets us inherit attributes and methods from another class. Polymorphism uses those methods to perform different tasks.