has

Australia's #1 for Law
Join 150,000 Australians every month. Ask a question, respond to a question and better understand the law today!
FREE - Join Now
In database design, object-oriented programming and design (see object oriented program architecture), has-a (has_a or has a) is a composition relationship where one object (often called the constituted object, or part/constituent/member object) "belongs to" (is part or member of) another object (called the composite type), and behaves according to the rules of ownership. In simple words, has-a relationship in an object is called a member field of an object. Multiple has-a relationships will combine to form a possessive hierarchy.
This is to be contrasted with an is-a (is_a or is a) relationship which constitutes a taxonomic 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.
To summarize the relations, we have

hypernym-hyponym (supertype-subtype) relations between types (classes) defining a taxonomic hierarchy, where
for an inheritance relation: a hyponym (subtype, subclass) has a type-of (is-a) relationship with its hypernym (supertype, superclass);
holonym-meronym (whole/entity/container-part/constituent/member) relations between types (classes) defining a possessive hierarchy, where
for an aggregation (i.e. without ownership) relation:
a holonym (whole) has a has-a relationship with its meronym (part),
for a composition (i.e. with ownership) relation:
a meronym (constituent) has a part-of relationship with its holonym (entity),
for a containment relation:
a meronym (member) has a member-of relationship with its holonym (container);
concept-object (type-token) relations between types (classes) and objects (instances), where
a token (object) has an instance-of relationship with its type (class).

View More On Wikipedia.org
  1. R

    NSW builder underestimated cost, inflates invoices, gives false invoice, removes tools from site

    Any advise on the following please.if I have left out any vital information, please advise... I engaged the builder to convert my investment property, a terrace house into a 3 room boarding house with internal renovation work only. The renovation was to be developed in two stages, with a budget...
  2. G

    SA Partner has no access to son. Mother ignoring all contact and mediation.

    Okay so. My partner found out he has a son from a one night stand before we were together. He had no idea until a friend of the mother's sent a Facebook msg to him out of the blue stating that he has a son. That he is in danger and being neglected. Partner contacted the mother to organise a DNA...
  3. A

    VIC Magistrate court has revoked an IVO without me presenting further and better particulars

    Hello members I have an interim IVO in place, a mentions hearing was conducted recently with a contested hearing due in March 2021. The court advised to provide further and better particulars before this date (from memory 2 weeks before, don't have the paperwork in front of me now). The ex has...
  4. B

    QLD Ex has a car that I have a loan for

    I’ve split from my ex, and whilst we were together I bought him a car under my name. I got it in a personal loan, which was mistake number one. Secondly is he got it registered in his name. only thing I have showing proof is a tax invoice from the man I bought it from which is written to me. I...
  5. J

    NSW Access to property as co-owners

    Probate has just been granted on my mothers house where I have lived for the past 14 years as her carer. My sister and I are equal beneficiaries and executors. Legally, can my sister enter the property, let herself in and remove articles whilst I am not present?. I don't have an issue with...
  6. C

    NSW Buying property tenants in common when it has a mortgage

    Hi All, About 35 years ago my grandfather bought 100 acres of land with three friends. The group of four 'friends' still own the property as tenants in common, each with 25% ownership, and each with their own dwelling on a portion of the property. My grandfather made the purchase without the...
  7. C

    NSW My 16year old grandson has been charged with sexual assault of a minor who is 13

    My 16yearokd grandson has been charged with sexual assault of a minor who was 13 and by law unable to give consent
  8. B

    Spouse has withdrawn $20k from Super under covid arrangements prior to signing consent order

    I am married but living separated under one roof. My ex has withdrawn two lots of $10k super under the current covid arrangements. He did not tell me he was going to do this, has not shared any of it/or put any of it aside for me as part of our consent order/divorce. I don't know if he has it in...
  9. nic3113

    QLD Applicant has filed discontinuance

    Hi there, After only the mention the applicant has filed a discontinuance. We were ordered to have a family report. His papers was full of lies and foul accusations about my mental state ( none of it true) and false claims of alienating the children from him. This was very upsetting at the time...
  10. A

    WA My X is not abiding by parental plan & has / is restricting my access to my 2 kids

    Please Help Me. My X has started to not abide by the parental plan we had made in 2018. This plan was done with the help of Relationships Aust, but never put through the family law courts to make it a legal document. My kids live 330km away from me and I have only seen them for 20 days this...