A class of molluscs that includes the snails, whelks, limpets, land and sea slugs, and conches. Molluscs have a well-developed head with tentacles, a large flattened foot, and a coiled twisted shell. They occupy marine, freshwater, and terrestrial habitats; in the terrestrial and some freshwater gastropods the mantle cavity acts as a lung instead of enclosing gills.