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. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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?
  7. 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...
  8. 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...
  9. F

    NSW My husband has an ADVO on him by the police to protect me. Court hearing is pending after a few days.

    My husband has an ADVO on him by the police to protect me. Court hearing is pending after a few days. Im still on a partner visa 820. Will this affect my visa processing? I did not want to do the advo on him but the police did it on him to protect me, how can I withdraw it? Can I have my say in...
  10. S

    VIC EX Has Not Transferred Property Title.

    Hi, This will be my 3rd time trying to post this topic. My ex after 3 years now has still not transferred a property title from my son back to her as per the court order. I found this out from final notices sent via registered post this Tuesday from both the local council and water company...