Computer Science, asked by nagarajknaik5683, 11 months ago

What is Polymorphism and explain?

Answers

Answered by ramcharan54
0

polymorphism

Generally, the ability to appear in many forms. In object-oriented programming, polymorphism refers to a programming language's ability to process objects differently depending on their data type or class. More specifically, it is the ability to redefine methods for derived classes. For example, given a base class shape, polymorphism enables the programmer to define different area methods for any number of derived classes, such as circles, rectangles and triangles. No matter what shape an object is, applying the area method to it will return the correct results. Polymorphism is considered to be a requirement of any true object-oriented programming language (OOPL).

Answered by Anonymous
0
Hey !!<b>

Polymorphism is the ability for a message or data to be processed in more than one form. C++  implements polymorphism through virtual functions, overloaded functions and overloaded operators.
Similar questions