Intermediate
Object-Oriented Programming Concepts
Q58 / 100
What does "duck typing" mean (notably in languages like Python or Ruby)?
Correct! Well done.
Incorrect.
The correct answer is A) An object's suitability is determined by the presence of certain methods/properties, rather than its actual type or class
A
Correct Answer
An object's suitability is determined by the presence of certain methods/properties, rather than its actual type or class
Explanation
"If it walks like a duck and quacks like a duck, it's a duck" — duck typing focuses on behavior (methods present) rather than explicit type declarations.
Progress
58/100