object-oriented programming, use of predefined programming modular units (objects, classes, subclasses, and so forth) in order to make programming faster and easier to maintain. Object-oriented languages help to manage complexity in large programs. Objects package data and the operations on them so that only the operations are publicly accessible and internal details of the data structures are hidden. This information hiding made large-scale programming easier by allowing a programmer to think about each part of the program in isolation. In addition, objects may be derived from more general ones, “inheriting” their capabilities. Such an object hierarchy made it possible to define specialized objects without repeating all that is in the more general ones.

Object-oriented programming began with the Simula language (1967), which added information hiding to ALGOL. Another influential object-oriented language was Smalltalk (1980), in which a program was a set of objects that interacted by sending messages to one another. Since the 1990s, Java has been one of the most successful object-oriented languages.

David Hemmendinger

polymorphism

biology
Also known as: genetic polymorphism, polymorphic variation

polymorphism, in biology, a discontinuous genetic variation resulting in the occurrence of several different forms or types of individuals among the members of a single species. A discontinuous genetic variation divides the individuals of a population into two or more sharply distinct forms. The most obvious example of this is the separation of most higher organisms into male and female sexes. Another example is the different blood types in humans. In continuous variation, by contrast, the individuals do not fall into sharp classes but instead are almost imperceptibly graded between wide extremes. Examples include the smooth graduation of height among individuals of human populations and the graduations possible between the different geographic races. If the frequency of two or more discontinuous forms within a species is too high to be explained by mutation, the variation—as well as the population displaying it—is said to be polymorphic.

A polymorphism that persists over many generations is usually maintained because no one form possesses an overall advantage or disadvantage over the others in terms of natural selection. Some polymorphisms have no visible manifestations and require biochemical techniques to identify the differences that occur between the chromosomes, proteins, or DNA of different forms. The castes that occur in social insects are a special form of polymorphism that is attributable to differences in nutrition rather than to genetic variations.

The Editors of Encyclopaedia Britannica This article was most recently revised and updated by Adam Augustyn.