Hierarchy (object-oriented programming)

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. An exception is C++, where no single root class exists. 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 (implemented in the file "Object.class").

See also

* family tree
* hierarchy
* Implementation inheritance
* Inheritance semantics
* list of basic computer science topics
* List of graph theory topics
* Multiple inheritance
* Virtual inheritance
* Singly-rooted hierarchy


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • object-oriented programming —    Abbreviated OOP. A programming model that views a program as a set of self contained objects.    These objects interact with other objects by passing messages. Object oriented programming also lets you create procedures that work with objects… …   Dictionary of networking

  • object-oriented programming — ▪ computer science       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.… …   Universalium

  • object-oriented programming — noun creating a program that can use and support objects • Syn: ↑object oriented programing • Hypernyms: ↑programming, ↑programing, ↑computer programming, ↑computer programing * * * noun a type of computer programmin …   Useful english dictionary

  • Inheritance (object-oriented programming) — In object oriented programming (OOP), inheritance is a way to reuse code of existing objects, establish a subtype from an existing object, or both, depending upon programming language support. In classical inheritance where objects are defined by …   Wikipedia

  • List of object-oriented programming terms — Those words found in object oriented programming. Some are related to OOP and some not. A * Abstract class (also called deferred class) * Abstract method * Abstraction (computer science) * Access control * Accessor method * Allocated class *… …   Wikipedia

  • object-oriented — object .oriented adj object oriented computer programming languages are based on objects that are arranged in a ↑hierarchy ▪ object oriented programming ▪ object oriented languages …   Dictionary of contemporary English

  • Object-oriented Abstract Type Hierarchy — OATH Written in C++ Type library or framework Object oriented Abstract Type Hierarchy (OATH) is a class library for C++ from Texas Instruments. This article was originally based on material from the Free On line Dictionary of Computing, which is… …   Wikipedia

  • Service Oriented Programming — (SOP) is a programming paradigm that uses services as the unit of computer work, to design and implement integrated business applications and mission critical software programs. Services can represent steps of business processes and thus one of… …   Wikipedia

  • Hierarchy (disambiguation) — The concept of hierarchy, originally meaning rule by priests , has been used metaphorically to describe many different things. See Hierarchy for the main article, and also: * Hierarchical organization * Hierarchy (mathematics) * Containment… …   Wikipedia

  • Programming paradigm — Programming paradigms Agent oriented Automata based Component based Flow based Pipelined Concatenative Concu …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”