In computer programming, duck typing is an application of the duck testβ€”β€œIf it walks like a duck and it quacks like a duck, then it must be a duck”—to determine whether an object can be used for a particular purpose.