Has-a

Has-a

In database design and object oriented program architecture, has-a is a relationship where one object (often called the composited object) "belongs" to (is a part or member of) another object (called the composite type), and behaves according to the rules of ownership. Multiple "has-a" relationships will combine to form a possessive hierarchy. This is contrasted with an Is-a relationship which constitutes a different kind of hierarchy (subtyping). The decision whether the most logical relationship for an object and its subordinate is not always clearly "has-a" or "is-a". Confusion over such decisions have necessitated the creation of these metalinguistic terms. A good example of the "has-a" relationship is containers in the C++ STL.

ee also

* Is-a
* Object composition


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Has — ist der Familienname von: Bekir Ozan Has (* 1985), türkischer Fußballspieler Wojciech Has (1925 2000), polnischer Filmregisseur Has als geografische Benennung steht für: Kreis Has, albanischer Verwaltungskreis Sonstiges: Stiller Has ist eine… …   Deutsch Wikipedia

  • Häs — der Narrenzunft Schwenningen „Hansel“ Das Häs (Plural: Häser) bezeichnet im Umfeld der schwäbisch alemannischen Fasnet das Narrenkostüm, das meistens aus einer oft Larve genannten holzgeschnitzten Gesichtsmaske und dem vollständig… …   Deutsch Wikipedia

  • Has to Be — «Has to Be» Canción de Madonna álbum de estudio Ray of Light (Versión japonesa) Publicación 22 de febrero de 1998 …   Wikipedia Español

  • Has — can be:* Has District in Albania * Hungarian Academy of Sciences * Has, present tense of have (see Wiktionary)See also HAS …   Wikipedia

  • hâş — interj. Cuvânt cu care se alungă găinile sau alte păsări (de curte). [var.: câş, hâci interj.] – Onomatopee. Trimis de gall, 13.09.2007. Sursa: DEX 98  hâş interj. Trimis de siveco, 10.08.2004. Sursa: Dicţionar ortografic  HÂŞ interj. (se… …   Dicționar Român

  • has — third person singular present indicative of HAVE (Cf. have). Has been one who has outlived his fame first recorded c.1600 (as hes beene) …   Etymology dictionary

  • Has — (h[a^]z), 3d pers. sing. pres. of {Have}. [1913 Webster] …   The Collaborative International Dictionary of English

  • HAS — may refer to:* Ha il Regional Airport, the IATA code for the airport in Saudi Arabia * Hardened Aircraft Shelters * Hastings (Amtrak station), Nebraska, United States; Amtrak station code HAS * Hellenic Actuarial Society * Hippopotamus Artifact… …   Wikipedia

  • Has-a — «Has a» в объектно ориентированном программировании и проектировании баз данных  взаимосвязь, в которой один объект (часто называемый составляющим объектом) «принадлежит» (является частью или членом) другому объекту (называемому составным… …   Википедия

  • has — [z, əz, həz strong hæz] the third person singular of the present tense of ↑have …   Dictionary of contemporary English

  • has — 3rd person singular of the present tense of have …   Usage of the words and phrases in modern English

Share the article and excerpts

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