Main Page | See live article | Alphabetical index

Hierarchy (object-oriented programming)

In computer science's object-oriented programming, the mapped relationships of sub- and superclasses is known as a hierarchy. This can be visualized as an upside-down tree (or perhaps a pyramid), the top of which is known as the root. The issue is more complicated with languages that support multiple inheritance, where hierarchy can be any graph.

Hierarchy in Java

The root of the java class hierarchy is the object class.

See also: family tree, hierarchy