English, asked by hemalatha2811, 1 year ago

what is the main reason for using polymorphism in a code​

Answers

Answered by Anonymous
2

Answer:

The reason why you use polymorphism is when you build generic frameworks that take a whole bunch of different objects with the same interface. When you create a new type of object, you don't need to change the framework to accommodate the new object type, as long as it follows the "rules" of the object.

Similar questions