Python Programming - Polymorphism - Discussion

Discussion Forum : Polymorphism - General Questions (Q.No. 33)
33.
How is polymorphism related to the concept of "duck typing"?
Polymorphism in Python is based on the idea of explicitly specifying data types
"Duck typing" refers to the ability of objects to take on multiple forms, which is a form of polymorphism
Polymorphism in Python is achieved through static typing
"Duck typing" refers to the use of explicit type declarations in Python
Answer: Option
Explanation:
"Duck typing" in Python refers to the ability of objects to take on multiple forms or types based on their behavior, aligning with the concept of polymorphism.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.