Computer Science, asked by ritikyadav50, 10 months ago

what is polymorphism??​

Answers

Answered by sarveshcpr
0

Answer:

Explanation:

In object-oriented programming, polymorphism (from the Greek meaning "having multiple forms") is the characteristic of being able to assign a different meaning or usage to something in different contexts - specifically, to allow an entity such as a variable, a function, or an object to have more than one form.

Answered by ÚɢʟʏÐᴜᴄᴋʟɪɴɢ1
12

polymorphism::-

Polymorphism is an object-oriented programming concept that refers to the ability of a variable, function or object to take on multiple forms. In a programming language exhibiting polymorphism, class objects belonging to the same hierarchical tree (inherited from a common parent class) may have functions with the same name, but with different behaviors.

Example

The classic example is of the Shape class and all the classes that are inherited from it, such as:

Rectangle

Triangle

Circle

svg viewer

sorry for answering..... ( hope it's helpful)

Similar questions