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. 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...
  2. 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...
  3. 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...
  4. 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
  5. 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...
  6. 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...
  7. 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...
  8. S

    QLD Advice needed. Employer has installed CCTV cameras with audio at workplace.

    I work in a Brisbane city business where my boss has installed 3 x CCTV cameras with audio. We know he using these cameras to listen in to conversations. My understanding is the audio recording is illegal (as is the video since he doesn’t have signs up). Am I right to assume this and what is...
  9. B

    NSW Ex Partner Has My Car and wont return it

    Hi Guys, Just looking for abit of advice, A quick bit of background information, ex and i were together for 8 years, seperated over 25 months ago, no binding financial agreements, no court orders, no joint assets except for perhaps this car. Car has always been registered in my name. Loan...
  10. N

    WA My mother bought a house using her money. Her ex partner is on the title. He broke up with her and has paid no money in Ten Years.

    My mother bought a house using her money. Her ex partner is on the title. He broke up with her and has paid no money towards her or the house in over Ten Years. She lives in WA. Can we remove him from the Title?