130k views
2 votes
What is Polymorphism in programming? Explain in your own words with examples.

2 Answers

0 votes

Answer:

A computer program which can change on it's own, such as a polymorphic virus that is harder to detect. It can change it's own code to achieve the same goal but have a different structure.

Step-by-step explanation:

User Jnforja
by
3.6k points
5 votes

Answer:

Polymorphism is a feature of object-oriented

programming languages that allows a specific routine to use variables of different types at different times. Polymorphism is the ability of a programming language to present the same interface for several different underlying data types.

Step-by-step explanation:

hope it helps

User SleepyMonad
by
2.8k points