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. 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...
  2. 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...
  3. 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...
  4. 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?
  5. A

    VIC Bought a lemon car off a private seller, second hand, has caused me significant damage. Wondering what my rights are?

    HI there, I bought a Ford Ranger 2007 second-hand from a private seller on 26 Feb, 2020 - i bought it through carsales.com.au. On the description the owner disclosed that 2 things needed fixing - the rear light and new tires. After purchase i took it to the mechanic and they fixed those things...
  6. J

    QLD Who has to prove content is false or true

    Hi Everyone, Got a question relating to how judgement is determined regarding defamation in Queensland. Is the onus on the Plaintiff to prove defamatory content is false or is the onus on the defendant to prove the defamatory content is true? For example can a Plaintiff simply state the...
  7. N

    My mother bought a house using her money. Her ex partner is on the title. He has paid no money towards the house in over Ten years.

    My mother bought a house using her money. Her ex partner is on the title. He broke up with her over Ten years ago and has paid no money towards the house in over Ten years. How do we remove him from the title?
  8. SarahCL

    Legislation on reduced overall working hours their workload has increased.

    Hi, Is there any sections in the legislation that the employees can complain in terms of employers reducing the number of working hours? This involves staff having their overall hours reduced while their workload has increased. Staff are also being asked to perform different duties to...
  9. J

    VIC my son has worked in the same place for approx. 16 years. he is still classified as an casual worker no overtime rates no meal allowance in fact no

    penalties apply .he has to work overtime and now has come to a call in on a need basis and is told to go home when their is no work and after that than be called back to work not one penalty .no travel allowance .he is working for an essential service and I find these conditions hard to believe .
  10. J

    NSW Child custody issue

    My son has been separated from his wife for 4 years. To date they have agreed to split the caring of their two children (aged 14 an 11) 50/50 and this has worked. There are no court child custody orders in place. Recently she has moved location and threatened to have the children 100% of the...