0 votes
in Python by
What is polymorphism in Python?

2 Answers

0 votes
by

By using polymorphism in Python we will understand how to perform a single task in different ways. For example, designing a shape is the task and various possible ways in shapes are a triangle, rectangle, circle, and so on.

0 votes
by

Polymorphism is the ability of the code to take multiple forms. Let’s say, if the parent class has a method named XYZ then the child class can also have a method with the same name XYZ having its own variables and parameters.

Related questions

+1 vote
asked Jan 30, 2022 in Python by sharadyadav1986
0 votes
asked Oct 14, 2021 in Python by rajeshsharma
...