Creature type (Dungeons & Dragons) all animal type monsters are based on real world animals. Creature entries based on mythological, fictional, or nonexistent animals are usually classified as magical beasts (see below). Besides ordinary fish, birds, reptiles and mammals, the animal type is also applied to depictions of dinosaurs, prehistoric animals, and "dire" or specially modified, often larger and scarier, versions of real world animals. Some real world animals are not given the animal type in the game. Examples include arthropods (insects, spiders, etc.) and worms, which the game classifies as "vermin" (see below) and not animals. Mollusks, such as octopuses, are often classified as
Duck typing in a way that it does not support. class Duck: class Airplane: class Whale: def lift_off(entity): duck = Duck() airplane = Airplane() whale = Whale() lift_off(duck) # prints `Duck flying` lift_off(airplane) # prints `Airplane flying` lift_off(whale) # Throws the error `'Whale' object has no attribute 'fly'` Certain usually statically typed languages such as Boo and the version 4 release of C# have extra type annotations Templates in C++ allow the language to use compile-time duck typing. Duck typing is similar to, but distinct from structural typing. Structural typing is a static typing system that determines type compatibility and equivalence by