Containment (computer programming)

Containment (computer programming)

In OOP supported languages, containership means an object is created within another object.

For Example in C++:

class A
{
        int a;
}x;
 
class B
{
        A y; // All the data members and member functions of class A can be accessed through the object 'y'
}z;

See also


difference between Container ship and Inheritance? http://forums.devx.com/archive/index.php/t-86776.html


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Containment (disambiguation) — Containment may refer to: Containment, a foreign policy used by the United States during the Cold War Containment building, a structure that encloses a nuclear reactor Containment, a measure of prevention of a fire spreading, in firefighting,… …   Wikipedia

  • List of important publications in computer science — This is a list of important publications in computer science, organized by field. Some reasons why a particular publication might be regarded as important: Topic creator – A publication that created a new topic Breakthrough – A publication that… …   Wikipedia

  • Tombstone (programming) — Tombstones are a mechanism to detect dangling pointers that can appear in certain computer programming languages, e. g. C, C++ and assembly languages, and to act as a containment to their dangerous effects.A tombstone is a structure that acts as… …   Wikipedia

  • United States — a republic in the N Western Hemisphere comprising 48 conterminous states, the District of Columbia, and Alaska in North America, and Hawaii in the N Pacific. 267,954,767; conterminous United States, 3,022,387 sq. mi. (7,827,982 sq. km); with… …   Universalium

  • Algorithm characterizations — The word algorithm does not have a generally accepted definition. Researchers are actively working in formalizing this term. This article will present some of the characterizations of the notion of algorithm in more detail. This article is a… …   Wikipedia

  • Chomsky hierarchy — Within the field of computer science, specifically in the area of formal languages, the Chomsky hierarchy (occasionally referred to as Chomsky–Schützenberger hierarchy) is a containment hierarchy of classes of formal grammars. This hierarchy of… …   Wikipedia

  • Tree structure — A tree structure showing the possible hierarchical organization of an encyclopedia …   Wikipedia

  • List of people from Milwaukee, Wisconsin — This is a List of Milwaukeeans, notable citizens of Milwaukee, Wisconsin. Contents 1 Born and raised in Milwaukee 2 Born elsewhere, raised in Milwaukee 3 Born in Milwaukee, raised elsewhere …   Wikipedia

  • CellML — is an XML based markup language for describing mathematical models. Although it could theoretically describe any mathematical model, it was originally created with the Physiome Project in mind, and hence used primarily to describe models relevant …   Wikipedia

  • logistics — /loh jis tiks, leuh /, n. (used with a sing. or pl. v.) 1. the branch of military science and operations dealing with the procurement, supply, and maintenance of equipment, with the movement, evacuation, and hospitalization of personnel, with the …   Universalium

Share the article and excerpts

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