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

  • 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 — Haute Autorité de santé La Haute Autorité de santé (HAS) reprend, depuis 2005, les missions de l’Agence nationale d accréditation et d évaluation en santé (ANAES), celles de la Commission de la transparence (instance scientifique qui évalue les… …   Wikipédia en Français

  • HAS — Die Abkürzung HAS steht für: Handelsschule, in Österreich Hardened Aircraft Shelter, verbunkerter Flugzeugunterstand für Kampfflugzeuge Landkreis Haßberge, als deutsches Kraftfahrzeugkennzeichen Helium Atom Streuung, Beugungsmethode in der… …   Deutsch Wikipedia

  • has — Have Have (h[a^]v), v. t. [imp. & p. p. {Had} (h[a^]d); p. pr. & vb. n. {Having}. Indic. present, I {have}, thou {hast}, he {has}; we, ye, they {have}.] [OE. haven, habben, AS. habben (imperf. h[ae]fde, p. p. geh[ae]fd); akin to OS. hebbian, D.… …   The Collaborative International Dictionary of English

  • Has — Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom. HAS est un sigle qui peut désigner : Institutions Haute Autorité de Santé Lieux Has est un toponyme qui peut désigner : Wojciech Has,… …   Wikipédia en Français

Share the article and excerpts

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