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. M

    Seeking Advice: Has Anyone Made an Asbestos Claim?

    Hi everyone, I’m not sure if this is the right forum, but I was wondering if anyone here has experience with claiming compensation for asbestos-related diseases. Did you find the process straightforward, or were there challenges along the way? Any advice on where to start or which resources...
  2. B

    QLD Neighbour behind me has built shed too close to fence. Several issues and I’m not sure how to approach.

    Thank you for reading. We bought our house 3 years ago. When we moved in, we did not realise that the house behind us had a fibro shed/studio that is so close to the fence that it touches it. We discovered it upon clearing a garden. I estimate it to be 5-6m along the boundary and maybe 2.5m-3m...
  3. I

    NSW Ex partner has not signed mortgage discharge forms despite signing BFA... what happens next?

    Hi All, My ex partner has signed the BFA but has failed to sign the mortgage discharge and the BFA states my ex would have to sign all documents before the settlement date. The settlement is in 5 days and the discharge forms have been pending for almost 4 weeks. What happens if my ex does not...
  4. N

    VIC My ex has moved to a new address with the kids and have consent orders

    Hi, My ex has moved to a new address with the kids and I don't know the new address (all I know she had moved with her parents for now) Consent orders state: Any party must notify the other party 21 days prior to any change of address. Do I have to send an email asking for the new address, or...
  5. O

    NSW Company has ignored Letter of Demand for unpaid invoices, what are the next steps from here?

    I'm a sole trader based in NSW who has been doing work sporadically on behalf of a company based in another state; have been previously paid via invoices that I submitted after the work was completed. One of my invoices from earlier this year was disputed by the Company and they are refusing to...
  6. Blairy

    QLD Commission after employment has been terminated

    Hi, I’m asking this for my husband. He’s been in a Real Estate Sales Associate role for 2 months and a half, 1 week ago his boss wanted to fire him for not listing at least 3 properties in the time he’s been there. His boss never mentioned at the beginning of employment there was a target he...
  7. C

    VIC Avoid going to court for the property settlement after 12mths has passed sicne divorce

    Hi, I was married for 10 years and got divorced for almost two years by now. Yes, 12 months has passed since the divorce order came in to effect. I am aware "once your divorce is final you only have 12 months to make an application to the Court for a property settlement unless there are...
  8. G

    NSW Applicant has not filed Trial affidavit for Final hearing

    We have orders from the Compliance and Readiness hearing to file our affidavits at the same time. The applicant has failed to do so by almost a week and it is 3 weeks to trial. What can the courts do?
  9. W

    I believe my lawyer has been very negligent and has cost me dearly.. What can I do now?

    I am in a very difficult legal situation and need some advice. I have been involved in a long running legal dispute with the purchasers of a block of land, which I sold in 2020. In November 2023, I engaged a new solicitor for my upcoming court case on the 1 May 2024. However, despite doing...
  10. G

    QLD Mechanic has been fixing my car 7 months for a 3 day job. What are my rights?

    I had a BMW mobile mechanic service my car in May 2023. He advised that the turbos needed replacing and not to drive the car. I sourced the turbos but when it came to get a mechanic most only supply and install. The best quote I had was for $1500 but they were on the other side of town. Was...