Physics Daily - Physics Encyclopedia and Research Articles
      Back to Physics Daily Main Menu Go to Index of Topics/Articles

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 directed acyclic graph.

Aggregation or Composition relationships in object-oriented design also form a hierarchy, composition hierarchy.

Hierarchy in Java

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

See also: family tree, hierarchy, list of basic computer science topics, List_of_graph_theory_topics

07-10-2008 09:35:13
The contents of this article are licensed from Wikipedia.org under the GNU Free Documentation License. How to see transparent copy
 
PhysicsDaily.com Legal info