Answer :
A characteristic of object-oriented programming languages called polymorphism enables a particular function to use variables of various types at various points.
Sometimes you'd like to put a lot of the same sort of objects in an array and use the same method on each of them. A program's ability to redefine methods for derived classes is made possible via polymorphism. One of the fundamental elements of any object-oriented programming language is polymorphism.
Polymorphism is supported by a number of languages, including Ruby, Java, C++, and Python. With the ability to redefine methods for derived classes, polymorphic code enables a program to process objects differently based on their data type or class. Here are a few of the most typical computer science instances of polymorphism.
Know more about polymorphism here:
https://brainly.com/question/29241000
#SPJ4