Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)

I went over the term duck typing while at the same time perusing irregular topics on programming on the web and didn't totally get it.

What actually is duck typing?

1 Answer

0 votes
by (26.4k points)

Duck typing is used in dynamic languages, that do not have strong typing.

The thought is that you needn't bother to invoke a current method on an object - if a method is characterized on it, you can summon it. 

The name comes from the expression, 

"If it looks like a duck and quacks like a duck, it's a duck".

Are you pretty much interested to learn python in detail? Come and join the python training course to gain more knowledge.

Related questions

0 votes
1 answer
asked Feb 24, 2021 in Python by RohitSingh (2.6k points)
0 votes
1 answer
asked Mar 1, 2021 in Python by Rekha (2.2k points)
0 votes
1 answer
asked Dec 16, 2020 in Python by Rekha (2.2k points)

Browse Categories

...