"When I see a bird that walks like a duck and swims like a duck and quacks like a duck, I call that bird a duck."
– James Whitcomb Riley
Clear, isn't it? What may not be so clear is that this approach can also be used in computer programming. Yes, even without an actual duck!
For design patterns lovers, duck typing is the smartest way to achieve the Visitor pattern goal.