__Duck typing__ in computer programming 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 (computer science) can be used for a particular purpose.
With normal typing, suitability is determined by an object's type. In duck typing, an object's suitability is determined by the presence of certain Method (computer programming) and properties, rather than the type of the object itself- wikipedia
# In statically typed languages
In some Type system#Static typing languages such as C Sharp (programming language) and Boo (programming language), class type checking can be specified to occur at run time rather than compile time. Duck typing can be achieved in Java (programming language) using the MethodHandle API- wikipedia
# Comparison with other type systems
# Example
# See also