What is the use of duck typing?
What is the use of duck typing? Correct Answer Less restriction on the type values that can be passed to a given method
In Python, any set of classes with a common set of methods can be treated similarly. This is called duck typing. Hence duck typing imposes less restrictions.
মোঃ আরিফুল ইসলাম
Feb 20, 2025