3 ms·
(possibly redundant) It's based upon the phrase: if it looks like a duck and quacks like a duck, it's a duck. In this case, if the object has the methods of t
by mbreese 17y ago
(possibly redundant)
It's based upon the phrase: if it looks like a duck and quacks like a duck, it's a duck.
In this case, if the object has the methods of the duck interface, treat it like a duck object.