Duck typing

Duck typing

Jesse Russell Ronald Cohn

     

бумажная книга



ISBN: 978-5-5088-6802-4

High Quality Content by WIKIPEDIA articles! In computer programming with object-oriented programming languages, duck typing is a style of dynamic typing in which an object`s methods and properties determine the valid semantics, rather than its inheritance from a particular class or implementation of a specific interface. The name of the concept refers to the duck test, attributed to James Whitcomb Riley (see history below), which may be phrased as follows: